Enum ProteinMiscChangeType
- java.lang.Object
-
- java.lang.Enum<ProteinMiscChangeType>
-
- de.charite.compbio.jannovar.hgvs.protein.change.ProteinMiscChangeType
-
- All Implemented Interfaces:
Serializable
,Comparable<ProteinMiscChangeType>
public enum ProteinMiscChangeType extends Enum<ProteinMiscChangeType>
Enum with for the miscellaneous protein changes.- Author:
- Manuel Holtgrewe
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIFFICULT_TO_PREDICT
difficult to predict (?
)NO_CHANGE
no change (=
)NO_PROTEIN
no protein is produced
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toHGVSString(boolean onlyPredicted)
static ProteinMiscChangeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProteinMiscChangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIFFICULT_TO_PREDICT
public static final ProteinMiscChangeType DIFFICULT_TO_PREDICT
difficult to predict (?
)
-
NO_CHANGE
public static final ProteinMiscChangeType NO_CHANGE
no change (=
)
-
NO_PROTEIN
public static final ProteinMiscChangeType NO_PROTEIN
no protein is produced
-
-
Method Detail
-
values
public static ProteinMiscChangeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProteinMiscChangeType c : ProteinMiscChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProteinMiscChangeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toHGVSString
public String toHGVSString(boolean onlyPredicted)
- Parameters:
onlyPredicted
- whether or not the change was only predictd- Returns:
- String with HGVS representation of the misc change type, together with the
onlyPredicted
flag
-
-