|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<POS>
net.sf.extjwnl.data.POS
public enum POS
Enumeration of major syntactic categories, or Part's Of Speech.
Each POS
has a human-readable label that can be used to print it, and a key by which it can be looked up.
Enum Constant Summary | |
---|---|
ADJECTIVE
|
|
ADVERB
|
|
NOUN
|
|
VERB
|
Field Summary | |
---|---|
static int |
ADJECTIVE_SATELLITE_ID
|
static String |
ADJECTIVE_SATELLITE_KEY
|
Method Summary | |
---|---|
static List<POS> |
getAllPOS()
|
int |
getId()
Returns the id for this POS. |
String |
getKey()
Returns the key for this POS. |
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(String key)
Return the POS whose key matches key,
or null if the key does not match any POS. |
static POS |
getPOSForLabel(String label)
Return the POS whose key matches label,
or null if the label does not match any POS. |
String |
toString()
|
static POS |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
Field Detail |
---|
public static final String ADJECTIVE_SATELLITE_KEY
public static final int ADJECTIVE_SATELLITE_ID
Method Detail |
---|
public static POS[] values()
for (POS c : POS.values()) System.out.println(c);
public static POS valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static List<POS> getAllPOS()
public static POS getPOSForLabel(String label)
POS
whose key matches label,
or null if the label does not match any POS.
label
- POS label
public static POS getPOSForKey(String key)
POS
whose key matches key,
or null if the key does not match any POS.
key
- key for POS
public static POS getPOSForId(int id)
POS
whose id matches id,
or null if the id does not match any POS.
id
- id for POS
public String toString()
toString
in class Enum<POS>
public String getLabel()
public String getKey()
public int getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |