|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.data.POS
public final 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 |
ADVERB
|
static POS |
NOUN
|
static POS |
VERB
|
Method Summary | |
---|---|
static java.util.List |
getAllPOS()
|
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
Return a label intended for textual presentation. |
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. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, 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
Method Detail |
---|
public static java.util.List getAllPOS()
public static POS getPOSForLabel(java.lang.String label)
POS
whose key matches label,
or null if the label does not match any POS.
public static POS getPOSForKey(java.lang.String key)
POS
whose key matches key,
or null if the key does not match any POS.
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getLabel()
public java.lang.String getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |