Class PointerType
java.lang.Object
net.didion.jwnl.data.PointerType
- All Implemented Interfaces:
Serializable
Instances of this class enumerate the possible WordNet pointer types,
and are used to label
PointerTypes. 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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate intprivate Stringprivate static booleanprivate Resolvableprivate Resolvableprivate PointerTypeThe PointerType that is the revers of this PointerTypeprivate static final intprivate static final intprivate static final ListA list of allPointerTypes.static final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypeprivate static final Mapprivate static final intstatic final PointerTypestatic final PointerTypeprivate static final intstatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypeprivate static final Mapstatic final PointerTypestatic final PointerTypestatic final PointerType(package private) static final longstatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypestatic final PointerTypeprivate static final intstatic final PointerType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether or not this PointerType can be associated withposstatic Liststatic Listprivate StringgetKey()getLabel()static PointerTypeReturn thePointerTypewhose key matches key.private static intgetPOSMask(POS pos) Returns the pointer type that is symmetric to this type.inthashCode()static voidbooleanstatic booleanisSymmetric(PointerType type) Returns true if type is a symmetric pointer type (it is its own symmetric type).private static voidSet a as b's symmetric type, and vice versa.booleansymmetricTo(PointerType type) Returns true if type is symmetric to this pointer type.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
N
private static final int N- See Also:
-
V
private static final int V- See Also:
-
ADJ
private static final int ADJ- See Also:
-
ADV
private static final int ADV- See Also:
-
LEXICAL
private static final int LEXICAL- See Also:
-
ANTONYM
-
CATEGORY
-
REGION
-
USAGE
-
HYPERNYM
-
HYPONYM
-
NOMINALIZATION
-
INSTANCE_HYPERNYM
-
INSTANCES_HYPONYM
-
ATTRIBUTE
-
SEE_ALSO
-
MEMBER_HOLONYM
-
SUBSTANCE_HOLONYM
-
PART_HOLONYM
-
MEMBER_MERONYM
-
SUBSTANCE_MERONYM
-
PART_MERONYM
-
CATEGORY_MEMBER
-
REGION_MEMBER
-
USAGE_MEMBER
-
ENTAILMENT
-
ENTAILED_BY
-
CAUSE
-
VERB_GROUP
-
SIMILAR_TO
-
PARTICIPLE_OF
-
PERTAINYM
-
DERIVED
-
ALL_TYPES
A list of allPointerTypes. -
POS_TO_MASK_MAP
-
KEY_TO_POINTER_TYPE_MAP
-
_initialized
private static boolean _initialized -
_label
-
_key
-
_flags
private int _flags -
_symmetricType
The PointerType that is the revers of this PointerType -
_cachedToString
-
_flagStringCache
-
-
Constructor Details
-
PointerType
-
-
Method Details
-
initialize
public static void initialize() -
isSymmetric
Returns true if type is a symmetric pointer type (it is its own symmetric type). -
getPointerTypeForKey
Return thePointerTypewhose key matches key. -
getAllPointerTypes
-
getAllPointerTypesForPOS
-
setSymmetric
Set a as b's symmetric type, and vice versa. -
getPOSMask
-
toString
-
getKey
-
getLabel
-
appliesTo
Whether or not this PointerType can be associated withpos -
isSymmetric
public boolean isSymmetric() -
symmetricTo
Returns true if type is symmetric to this pointer type. -
getSymmetricType
Returns the pointer type that is symmetric to this type. -
hashCode
-
getFlagsAsString
-