public enum UCDSyntax extends java.lang.Enum<UCDSyntax>
Enum Constant and Description |
---|
BOTH
The word can be used indifferently as first or secondary word.
|
COLOUR
A colour index ; can be followed by two successive word describing a
part of the electromagnetic spectrum.
|
PHOT_QUANTITY
A photometric quantity ; can be followed by a word describing a part of
the electromagnetic spectrum.
|
PRIMARY
The word can only be used as “primary” or first word.
|
SECONDARY
The word cannot be used as the first word to describe a single quantity.
|
VECTOR
A vector.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
allowedSyntaxCodes
Human readable list of all possible syntaxes (in their character form)
listed in this Enum class.
|
protected char |
syntaxCode
Character associated with this UCD syntax.
|
Modifier and Type | Method and Description |
---|---|
static UCDSyntax |
get(char syntaxCode)
Get the Enum item representing the given syntax code character.
|
static UCDSyntax |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UCDSyntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UCDSyntax BOTH
public static final UCDSyntax COLOUR
Implementation note:
It will be considered as BOTH
in term of order (i.e. its place
in the UCD is not important).
public static final UCDSyntax PHOT_QUANTITY
Implementation note:
It will be considered as BOTH
in term of order (i.e. its place
in the UCD is not important).
public static final UCDSyntax PRIMARY
public static final UCDSyntax SECONDARY
public static final java.lang.String allowedSyntaxCodes
protected final char syntaxCode
Note: the case of the character (i.e. lower or upper case) should not be important.
public static UCDSyntax get(char syntaxCode)
syntaxCode
- The syntax code character for which the
corresponding Enum item is asked.null
if none matches.public static UCDSyntax 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 static UCDSyntax[] values()
for (UCDSyntax c : UCDSyntax.values()) System.out.println(c);