Class DictionaryElementType

java.lang.Object
net.didion.jwnl.data.DictionaryElementType

public class DictionaryElementType extends Object
WordNet contains different file types, index, synset data, and exception files. This class defines what the current dictionary is.
  • Field Details

    • INDEX_WORD

      public static final DictionaryElementType INDEX_WORD
      Property to define an index file.
    • SYNSET

      public static final DictionaryElementType SYNSET
      Property to define a synset file.
    • EXCEPTION

      public static final DictionaryElementType EXCEPTION
      Property that defines an exception file.
    • _name

      private final String _name
      The name of the dictionary.
    • ALL_TYPES

      private static final List ALL_TYPES
      A list of the different dictionary types.
  • Constructor Details

    • DictionaryElementType

      private DictionaryElementType(String name)
      Create a new DictionaryElementType.
      Parameters:
      name -
  • Method Details

    • getAllDictionaryElementTypes

      public static List getAllDictionaryElementTypes()
      Gets all the dictionary types.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Gets the name of this DictionaryElementType.
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object