public enum CharacterStateSetType extends java.lang.Enum<CharacterStateSetType>
Enum Constant and Description |
---|
AMINO_ACID
Indicates that the current alignment contains nucleotide characters from amino acid sequences.
|
CONTINUOUS
Indicates that the current alignment contains characters with continuous numeric states that could be represented
e.g.
|
DISCRETE
Indicates that the current alignment consists of discrete character states that do not represent nucleotide or
amino acid data (e.g.
|
DNA
Indicates that the current alignment contains nucleotide characters from DNA sequences.
|
NUCLEOTIDE
Indicates that the current alignment contains nucleotide characters from DNA or RNA sequences.
|
RNA
Indicates that the current alignment contains nucleotide characters from RNA sequences.
|
UNKNOWN
Indicates that a token set definition not enumerated by this class was found in the parsed file or it is not know
whether the set is discrete or continuous.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDiscrete()
Tests whether this token set type describes a set of discrete tokens.
|
boolean |
isNucleotide()
Tests whether this token set type describes a set of nucleotide tokens.
|
static CharacterStateSetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CharacterStateSetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharacterStateSetType NUCLEOTIDE
public static final CharacterStateSetType DNA
public static final CharacterStateSetType RNA
public static final CharacterStateSetType AMINO_ACID
public static final CharacterStateSetType DISCRETE
Note that this type will only be selected by the readers if they can determine (e.g. from format conventions) that
the current character state set is discrete. If that is not possible UNKNOWN
might be selected as the type
although the character states are discrete.
public static final CharacterStateSetType CONTINUOUS
Double
objects.
Note that this type will only be selected by the readers if they can determine (e.g. from format conventions) that
the current character state set is continuous. If that is not possible UNKNOWN
might be selected as the type
although the character states are continuous.
public static final CharacterStateSetType UNKNOWN
public static CharacterStateSetType[] values()
for (CharacterStateSetType c : CharacterStateSetType.values()) System.out.println(c);
public static CharacterStateSetType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isNucleotide()
true
if this instance is either NUCLEOTIDE
, DNA
or RNA
, false
otherwisepublic boolean isDiscrete()
false
if this instance is either CONTINUOUS
or UNKNOWN
, false
otherwise