Package net.didion.jwnl.data
Class DictionaryElementType
- java.lang.Object
-
- net.didion.jwnl.data.DictionaryElementType
-
public class DictionaryElementType extends java.lang.ObjectWordNet contains different file types, index, synset data, and exception files. This class defines what the current dictionary is.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_nameThe name of the dictionary.private static java.util.ListALL_TYPESA list of the different dictionary types.static DictionaryElementTypeEXCEPTIONProperty that defines an exception file.static DictionaryElementTypeINDEX_WORDProperty to define an index file.static DictionaryElementTypeSYNSETProperty to define a synset file.
-
Constructor Summary
Constructors Modifier Constructor Description privateDictionaryElementType(java.lang.String name)Create a new DictionaryElementType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.ListgetAllDictionaryElementTypes()Gets all the dictionary types.java.lang.StringgetName()Gets the name of this DictionaryElementType.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
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 java.lang.String _name
The name of the dictionary.
-
ALL_TYPES
private static final java.util.List ALL_TYPES
A list of the different dictionary types.
-
-
Method Detail
-
getAllDictionaryElementTypes
public static java.util.List getAllDictionaryElementTypes()
Gets all the dictionary types.- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()
Gets the name of this DictionaryElementType.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-