|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.mit.jwi.item.Pointer
public class Pointer
Concrete implementation of the IPointer
interface. This class
includes, as public fields, all pointers, lexical and semantic, defined in
the standard WordNet distribution.
This class in not implemented as an Enum
so that clients may
instantiate their own pointers using this implementation.
Field Summary | |
---|---|
static Pointer |
ALSO_SEE
|
static Pointer |
ANTONYM
|
static Pointer |
ATTRIBUTE
|
static Pointer |
CAUSE
|
static Pointer |
DERIVATIONALLY_RELATED
|
static Pointer |
DERIVED_FROM_ADJ
|
static Pointer |
DOMAIN
|
static Pointer |
ENTAILMENT
|
static Pointer |
HOLONYM_MEMBER
|
static Pointer |
HOLONYM_PART
|
static Pointer |
HOLONYM_SUBSTANCE
|
static Pointer |
HYPERNYM
|
static Pointer |
HYPERNYM_INSTANCE
|
static Pointer |
HYPONYM
|
static Pointer |
HYPONYM_INSTANCE
|
static Pointer |
MEMBER
|
static Pointer |
MERONYM_MEMBER
|
static Pointer |
MERONYM_PART
|
static Pointer |
MERONYM_SUBSTANCE
|
static Pointer |
PARTICIPLE
|
static Pointer |
PERTAINYM
|
static Pointer |
REGION
|
static Pointer |
REGION_MEMBER
|
static Pointer |
SIMILAR_TO
|
static Pointer |
TOPIC
|
static Pointer |
TOPIC_MEMBER
|
static Pointer |
USAGE
|
static Pointer |
USAGE_MEMBER
|
static Pointer |
VERB_GROUP
|
Constructor Summary | |
---|---|
Pointer(java.lang.String symbol,
java.lang.String name)
Constructs a new pointer object with the specified symbol and name. |
Method Summary | |
---|---|
protected static java.lang.String |
checkString(java.lang.String str)
Throws an exception if the specified string is null , empty,
or all whitespace. |
java.lang.String |
getName()
Returns a user-friendly name of this pointer type for identification purposes. |
static Pointer |
getPointerType(java.lang.String symbol,
POS pos)
Returns the pointer type (static final instance) that matches the specified pointer symbol. |
java.lang.String |
getSymbol()
The symbol in the Wordnet data files that is used to indicate this pointer type. |
protected java.lang.Object |
readResolve()
This utility method implements the appropriate deserialization for this object. |
java.lang.String |
toString()
|
static java.util.Collection<Pointer> |
values()
Emulates the Enum#values() function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Pointer ALSO_SEE
public static final Pointer ANTONYM
public static final Pointer ATTRIBUTE
public static final Pointer CAUSE
public static final Pointer DERIVATIONALLY_RELATED
public static final Pointer DERIVED_FROM_ADJ
public static final Pointer DOMAIN
public static final Pointer ENTAILMENT
public static final Pointer HYPERNYM
public static final Pointer HYPERNYM_INSTANCE
public static final Pointer HYPONYM
public static final Pointer HYPONYM_INSTANCE
public static final Pointer HOLONYM_MEMBER
public static final Pointer HOLONYM_SUBSTANCE
public static final Pointer HOLONYM_PART
public static final Pointer MEMBER
public static final Pointer MERONYM_MEMBER
public static final Pointer MERONYM_SUBSTANCE
public static final Pointer MERONYM_PART
public static final Pointer PARTICIPLE
public static final Pointer PERTAINYM
public static final Pointer REGION
public static final Pointer REGION_MEMBER
public static final Pointer SIMILAR_TO
public static final Pointer TOPIC
public static final Pointer TOPIC_MEMBER
public static final Pointer USAGE
public static final Pointer USAGE_MEMBER
public static final Pointer VERB_GROUP
Constructor Detail |
---|
public Pointer(java.lang.String symbol, java.lang.String name)
symbol
- the pointer symbol; may not be null
, empty, or
all whitespacename
- the pointer name; may not be null
, empty, or all
whitespaceMethod Detail |
---|
public java.lang.String getSymbol()
IPointer
null
, empty, or all whitespace.
getSymbol
in interface IPointer
public java.lang.String getName()
IPointer
null
, empty, or all whitespace.
getName
in interface IPointer
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Object readResolve()
protected static java.lang.String checkString(java.lang.String str)
null
, empty,
or all whitespace. Returns a trimmed form of the string.
str
- the string to be checked
java.lang.NullPointerException
- if the specified string is null
java.lang.IllegalArgumentException
- if the specified string is empty or all whitespacepublic static java.util.Collection<Pointer> values()
Enum#values()
function. Returns an unmodifiable collection
of all the pointers declared in this class, in the order they are
declared.
public static Pointer getPointerType(java.lang.String symbol, POS pos)
symbol
- the symbol to look uppos
- the part of speech for the symbol; may be null
except for ambiguous symbols
java.lang.IllegalArgumentException
- if the symbol does not correspond to a known pointer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |