| Modifier and Type | Field and Description |
|---|---|
static int |
ADJECTIVE_SATELLITE_ID |
static java.lang.String |
ADJECTIVE_SATELLITE_KEY |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<POS> |
getAllPOS() |
int |
getId()
Returns the id for this POS.
|
java.lang.String |
getKey()
Returns the key for this POS.
|
java.lang.String |
getLabel()
Return a label intended for textual presentation.
|
static POS |
getPOSForId(int id)
Return the
POS whose id matches id,
or null if the id does not match any POS. |
static POS |
getPOSForKey(char key)
Return the
POS whose key matches key,
or null if the key does not match any POS. |
static POS |
getPOSForKey(java.lang.String key)
Return the
POS whose key matches key,
or null if the key does not match any POS. |
static POS |
getPOSForLabel(java.lang.String label)
Return the
POS whose key matches label,
or null if the label does not match any POS. |
java.lang.String |
toString() |
static POS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static POS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
public static final java.lang.String ADJECTIVE_SATELLITE_KEY
public static final int ADJECTIVE_SATELLITE_ID
public static POS[] values()
for (POS c : POS.values()) System.out.println(c);
public static POS 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 java.util.List<POS> getAllPOS()
public static POS getPOSForLabel(java.lang.String label)
POS whose key matches label,
or null if the label does not match any POS.label - POS labelpublic static POS getPOSForKey(java.lang.String key)
POS whose key matches key,
or null if the key does not match any POS.key - key for POSpublic static POS getPOSForKey(char key)
POS whose key matches key,
or null if the key does not match any POS.key - POS keypublic static POS getPOSForId(int id)
POS whose id matches id,
or null if the id does not match any POS.id - id for POSpublic java.lang.String toString()
toString in class java.lang.Enum<POS>public java.lang.String getLabel()
public java.lang.String getKey()
public int getId()