Class 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 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:
    Serialized Form
    • 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 the PointerType whose key matches key.
      • getAllPointerTypes

        public static List getAllPointerTypes()
      • getAllPointerTypesForPOS

        public static List getAllPointerTypesForPOS​(POS pos)
      • getKey

        public String getKey()
      • getLabel

        public String getLabel()
      • appliesTo

        public boolean appliesTo​(POS pos)
        Whether or not this PointerType can be associated with pos
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object