Package net.didion.jwnl.data
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
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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private int
private String
private static boolean
private Resolvable
private Resolvable
private PointerType
The PointerType that is the revers of this PointerTypeprivate static final int
private static final int
private static final List
A list of allPointerType
s.static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
private static final Map
private static final int
static final PointerType
static final PointerType
private static final int
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
private static final Map
static final PointerType
static final PointerType
static final PointerType
(package private) static final long
static final PointerType
static final PointerType
static final PointerType
static final PointerType
static final PointerType
private static final int
static final PointerType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not this PointerType can be associated withpos
static List
static List
private String
getKey()
getLabel()
static PointerType
Return thePointerType
whose key matches key.private static int
getPOSMask
(POS pos) Returns the pointer type that is symmetric to this type.int
hashCode()
static void
boolean
static boolean
isSymmetric
(PointerType type) Returns true if type is a symmetric pointer type (it is its own symmetric type).private static void
Set a as b's symmetric type, and vice versa.boolean
symmetricTo
(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 allPointerType
s. -
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 thePointerType
whose 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
public int hashCode() -
getFlagsAsString
-