package uk.ac.ebi.quickgo.geneproduct.common;


/**
 * An enumeration of the possible states of proteome membership a gene product can have.
 * @author Tony Wardell
 * Date: 06/03/2018
 * Time: 10:33
 * Created with IntelliJ IDEA.
 */
public enum ProteomeMembership {
    REFERENCE("Reference"),
    COMPLETE("Complete"),
    NONE("None"),
    NOT_APPLICABLE("Not-applicable");

    private String value;

    ProteomeMembership(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    /**
     * Define the predicates required and order of importance to work out which Proteome membership category is
     * applicable.
     * @param isProtein is the gene product a protein
     * @param isReferenceProteome is the gene product a reference proteome
     * @param isComplete is the gene product a member of a complete proteome.
     * @return the String representation of the ProteomeMembership matching the applied constraints
     */
    public static String membership(boolean isProtein, boolean isReferenceProteome, boolean isComplete) {

        if (!isProtein) {
            return NOT_APPLICABLE.getValue();
        } else if (isReferenceProteome) {
            return REFERENCE.getValue();
        } else if (isComplete) {
            return COMPLETE.getValue();
        }
        return NONE.getValue();
    }
}

@@ -491,24 +491,24 @@
  String 
-getValue
+toString
 () %7B%0A   
@@ -1154,24 +1154,24 @@
 LICABLE.
-getValue
+toString
 ();%0A    
@@ -1237,24 +1237,24 @@
 FERENCE.
-getValue
+toString
 ();%0A    
@@ -1310,24 +1310,24 @@
 OMPLETE.
-getValue
+toString
 ();%0A    
@@ -1356,16 +1356,16 @@
 ONE.
-getValue
+toString
 ();%0A

Rename getValue() to toString()