|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.POS
public class POS
Instances of this class enumerate the possible 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.
Field Summary | |
---|---|
static POS |
ADJECTIVE
|
static POS |
ADJECTIVE_SATELLITE
|
static POS |
ADVERB
|
static POS |
NOUN
|
static POS |
VERB
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
An instance of POS is equal to another iff they're underlying keys are equal. |
static List<POS> |
getAllPOS()
|
String |
getKey()
Returns the key for this POS. |
String |
getLabel()
Return a label intended for textual presentation. |
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. |
int |
hashCode()
Returns the underlying pos key's hash code. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
public static final POS ADJECTIVE_SATELLITE
Method Detail |
---|
public 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 String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the comparison object
public String getLabel()
public String getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |