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, COMPLETE, NONE, NOT_APPLICABLE
}

@@ -305,11 +305,746 @@
 PLICABLE
+;%0A%0A    /**%0A     * Define the predicates required and order of importance to work out which Proteome membership category is%0A     * applicable.%0A     * @param isProtein is the gene product a protein%0A     * @param isRef is the gene product a reference proteome%0A     * @param isComplete is the gene product a member of a complete proteome.%0A     * @return the ProteomeMembership matching the applied constraints%0A     */%0A    public static ProteomeMembership membership(boolean isProtein, boolean isRef, boolean isComplete) %7B%0A        if (!isProtein) %7B%0A            return NOT_APPLICABLE;%0A        %7D else if (isRef) %7B%0A            return REFERENCE;%0A        %7D else if (isComplete) %7B%0A            return COMPLETE;%0A        %7D%0A        return NONE;%0A    %7D
 %0A%7D%0A

Add memberhip() method for selection logic.