edu.brandeis.cs.steele.wn
Class PointerType

java.lang.Object
  extended by edu.brandeis.cs.steele.wn.PointerType

public class PointerType
extends java.lang.Object

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.

Author:
Oliver Steele, steele@cs.brandeis.edu
See Also:
Pointer, POS

Field Summary
protected static int ADJ
           
protected static int ADV
           
static PointerType ANTONYM
           
static PointerType ATTRIBUTE
           
protected static POS[] CATS
           
static PointerType CAUSE
           
static PointerType DERIVED
           
static PointerType ENTAILMENT
           
protected  int flags
           
static PointerType HYPERNYM
           
static PointerType HYPONYM
           
protected  java.lang.String key
           
protected  java.lang.String label
           
protected static int LEXICAL
           
static PointerType MEMBER_HOLONYM
           
static PointerType MEMBER_MERONYM
           
protected static int N
           
static PointerType PART_HOLONYM
           
static PointerType PART_MERONYM
           
static PointerType PARTICIPLE_OF
           
static PointerType PERTAINYM
           
protected static int[] POS_MASK
           
static PointerType SEE_ALSO
           
static PointerType SIMILAR_TO
           
static PointerType SUBSTANCE_HOLONYM
           
static PointerType SUBSTANCE_MERONYM
           
protected  PointerType symmetricType
           
static PointerType[] TYPES
          A list of all PointerTypes.
protected static int V
           
static PointerType VERB_GROUP
           
 
Constructor Summary
protected PointerType(java.lang.String label, java.lang.String key, int flags)
           
 
Method Summary
 boolean appliesTo(POS pos)
           
 java.lang.String getLabel()
           
(package private) static PointerType parseKey(java.lang.String key)
          Return the PointerType whose key matches key.
protected static void setSymmetric(PointerType a, PointerType b)
           
 boolean symmetricTo(PointerType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N

protected static final int N
See Also:
Constant Field Values

V

protected static final int V
See Also:
Constant Field Values

ADJ

protected static final int ADJ
See Also:
Constant Field Values

ADV

protected static final int ADV
See Also:
Constant Field Values

LEXICAL

protected static final int LEXICAL
See Also:
Constant Field Values

CATS

protected static final POS[] CATS

POS_MASK

protected static final int[] POS_MASK

ANTONYM

public static final PointerType ANTONYM

HYPERNYM

public static final PointerType HYPERNYM

HYPONYM

public static final PointerType HYPONYM

ATTRIBUTE

public static final PointerType ATTRIBUTE

SEE_ALSO

public static final PointerType SEE_ALSO

ENTAILMENT

public static final PointerType ENTAILMENT

CAUSE

public static final PointerType CAUSE

VERB_GROUP

public static final PointerType VERB_GROUP

MEMBER_MERONYM

public static final PointerType MEMBER_MERONYM

SUBSTANCE_MERONYM

public static final PointerType SUBSTANCE_MERONYM

PART_MERONYM

public static final PointerType PART_MERONYM

MEMBER_HOLONYM

public static final PointerType MEMBER_HOLONYM

SUBSTANCE_HOLONYM

public static final PointerType SUBSTANCE_HOLONYM

PART_HOLONYM

public static final PointerType PART_HOLONYM

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

TYPES

public static final PointerType[] TYPES
A list of all PointerTypes.


label

protected java.lang.String label

key

protected java.lang.String key

flags

protected int flags

symmetricType

protected PointerType symmetricType
Constructor Detail

PointerType

protected PointerType(java.lang.String label,
                      java.lang.String key,
                      int flags)
Method Detail

setSymmetric

protected static void setSymmetric(PointerType a,
                                   PointerType b)

parseKey

static PointerType parseKey(java.lang.String key)
Return the PointerType whose key matches key.

Throws:
java.util.NoSuchElementException - If key doesn't name any PointerType.

getLabel

public java.lang.String getLabel()

appliesTo

public boolean appliesTo(POS pos)

symmetricTo

public boolean symmetricTo(PointerType type)