Package net.didion.jwnl.data
Class PointerType
- java.lang.Object
-
- net.didion.jwnl.data.PointerType
-
- All Implemented Interfaces:
Serializable
public final class PointerType extends Object implements Serializable
Instances of this class enumerate the possible WordNet pointer types, and are used to labelPointerTypes. EachPointerTypecarries 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PointerTypeANTONYMstatic PointerTypeATTRIBUTEstatic PointerTypeCATEGORYstatic PointerTypeCATEGORY_MEMBERstatic PointerTypeCAUSEstatic PointerTypeDERIVEDstatic PointerTypeENTAILED_BYstatic PointerTypeENTAILMENTstatic PointerTypeHYPERNYMstatic PointerTypeHYPONYMstatic PointerTypeINSTANCE_HYPERNYMstatic PointerTypeINSTANCES_HYPONYMstatic PointerTypeMEMBER_HOLONYMstatic PointerTypeMEMBER_MERONYMstatic PointerTypeNOMINALIZATIONstatic PointerTypePART_HOLONYMstatic PointerTypePART_MERONYMstatic PointerTypePARTICIPLE_OFstatic PointerTypePERTAINYMstatic PointerTypeREGIONstatic PointerTypeREGION_MEMBERstatic PointerTypeSEE_ALSOstatic PointerTypeSIMILAR_TOstatic PointerTypeSUBSTANCE_HOLONYMstatic PointerTypeSUBSTANCE_MERONYMstatic PointerTypeUSAGEstatic PointerTypeUSAGE_MEMBERstatic PointerTypeVERB_GROUP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(POS pos)Whether or not this PointerType can be associated withposstatic ListgetAllPointerTypes()static ListgetAllPointerTypesForPOS(POS pos)StringgetKey()StringgetLabel()static PointerTypegetPointerTypeForKey(String key)Return thePointerTypewhose key matches key.PointerTypegetSymmetricType()Returns the pointer type that is symmetric to this type.inthashCode()static voidinitialize()booleanisSymmetric()static booleanisSymmetric(PointerType type)Returns true if type is a symmetric pointer type (it is its own symmetric type).booleansymmetricTo(PointerType type)Returns true if type is symmetric to this pointer type.StringtoString()
-
-
-
Field Detail
-
ANTONYM
public static final PointerType ANTONYM
-
CATEGORY
public static final PointerType CATEGORY
-
REGION
public static final PointerType REGION
-
USAGE
public static final PointerType USAGE
-
HYPERNYM
public static final PointerType HYPERNYM
-
HYPONYM
public static final PointerType HYPONYM
-
NOMINALIZATION
public static final PointerType NOMINALIZATION
-
INSTANCE_HYPERNYM
public static final PointerType INSTANCE_HYPERNYM
-
INSTANCES_HYPONYM
public static final PointerType INSTANCES_HYPONYM
-
ATTRIBUTE
public static final PointerType ATTRIBUTE
-
SEE_ALSO
public static final PointerType SEE_ALSO
-
MEMBER_HOLONYM
public static final PointerType MEMBER_HOLONYM
-
SUBSTANCE_HOLONYM
public static final PointerType SUBSTANCE_HOLONYM
-
PART_HOLONYM
public static final PointerType PART_HOLONYM
-
MEMBER_MERONYM
public static final PointerType MEMBER_MERONYM
-
SUBSTANCE_MERONYM
public static final PointerType SUBSTANCE_MERONYM
-
PART_MERONYM
public static final PointerType PART_MERONYM
-
CATEGORY_MEMBER
public static final PointerType CATEGORY_MEMBER
-
REGION_MEMBER
public static final PointerType REGION_MEMBER
-
USAGE_MEMBER
public static final PointerType USAGE_MEMBER
-
ENTAILMENT
public static final PointerType ENTAILMENT
-
ENTAILED_BY
public static final PointerType ENTAILED_BY
-
CAUSE
public static final PointerType CAUSE
-
VERB_GROUP
public static final PointerType VERB_GROUP
-
SIMILAR_TO
public static final PointerType SIMILAR_TO
-
PARTICIPLE_OF
public static final PointerType PARTICIPLE_OF
-
PERTAINYM
public static final PointerType PERTAINYM
-
DERIVED
public static final PointerType DERIVED
-
-
Method Detail
-
initialize
public static void initialize()
-
isSymmetric
public static boolean isSymmetric(PointerType type)
Returns true if type is a symmetric pointer type (it is its own symmetric type).
-
getPointerTypeForKey
public static PointerType getPointerTypeForKey(String key)
Return thePointerTypewhose key matches key.
-
getAllPointerTypes
public static List getAllPointerTypes()
-
getKey
public String getKey()
-
getLabel
public String getLabel()
-
appliesTo
public boolean appliesTo(POS pos)
Whether or not this PointerType can be associated withpos
-
isSymmetric
public boolean isSymmetric()
-
symmetricTo
public boolean symmetricTo(PointerType type)
Returns true if type is symmetric to this pointer type.
-
getSymmetricType
public PointerType getSymmetricType()
Returns the pointer type that is symmetric to this type.
-
-