public enum PointerType extends java.lang.Enum<PointerType>
PointerType
s. Each PointerType
carries additional information: a human-readable label, an optional reflexive
type that labels links pointing the opposite direction, an encoding of
parts-of-speech that it applies to, and a short string that represents it in
the dictionary files.Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(POS pos)
Returns whether or not this PointerType can be associated with pos.
|
static java.util.List<PointerType> |
getAllPointerTypes() |
static java.util.List<PointerType> |
getAllPointerTypesForPOS(POS pos) |
int |
getFlags() |
java.lang.String |
getKey() |
java.lang.String |
getLabel() |
static PointerType |
getPointerTypeForKey(java.lang.CharSequence key)
Return the
PointerType whose key matches key and applies to pos. |
static PointerType |
getPointerTypeForKey(java.lang.String key)
Return the
PointerType whose key matches key and applies to pos. |
PointerType |
getSymmetricType()
Returns the pointer type that is symmetric to this type.
|
boolean |
isSymmetric() |
static boolean |
isSymmetric(PointerType type)
Returns true if type is a symmetric pointer type (it is its own symmetric type).
|
boolean |
symmetricTo(PointerType type)
Returns true if type is symmetric to this pointer type.
|
java.lang.String |
toString() |
static PointerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PointerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PointerType ANTONYM
public static final PointerType HYPERNYM
public static final PointerType HYPONYM
public static final PointerType ENTAILMENT
public static final PointerType SIMILAR_TO
public static final PointerType MEMBER_HOLONYM
public static final PointerType SUBSTANCE_HOLONYM
public static final PointerType PART_HOLONYM
public static final PointerType MEMBER_MERONYM
public static final PointerType SUBSTANCE_MERONYM
public static final PointerType PART_MERONYM
public static final PointerType CAUSE
public static final PointerType PARTICIPLE_OF
public static final PointerType SEE_ALSO
public static final PointerType PERTAINYM
public static final PointerType ATTRIBUTE
public static final PointerType VERB_GROUP
public static final PointerType DERIVATION
public static final PointerType DOMAIN_ALL
public static final PointerType MEMBER_ALL
public static final PointerType CATEGORY
public static final PointerType USAGE
public static final PointerType REGION
public static final PointerType CATEGORY_MEMBER
public static final PointerType USAGE_MEMBER
public static final PointerType REGION_MEMBER
public static final PointerType INSTANCE_HYPERNYM
public static final PointerType INSTANCES_HYPONYM
public static PointerType[] values()
for (PointerType c : PointerType.values()) System.out.println(c);
public static PointerType 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 boolean isSymmetric(PointerType type)
type
- pointer typepublic static PointerType getPointerTypeForKey(java.lang.String key)
PointerType
whose key matches key and applies to pos.key
- pointer type keyPointerType
whose key matches keypublic static PointerType getPointerTypeForKey(java.lang.CharSequence key)
PointerType
whose key matches key and applies to pos.key
- pointer type keyPointerType
whose key matches keypublic static java.util.List<PointerType> getAllPointerTypes()
public static java.util.List<PointerType> getAllPointerTypesForPOS(POS pos)
public java.lang.String toString()
toString
in class java.lang.Enum<PointerType>
public java.lang.String getKey()
public java.lang.String getLabel()
public boolean appliesTo(POS pos)
pos
- part of speechpublic boolean isSymmetric()
public boolean symmetricTo(PointerType type)
type
- pointer typepublic PointerType getSymmetricType()
public int getFlags()