Package net.didion.jwnl.data
Class DictionaryElementType
- java.lang.Object
-
- net.didion.jwnl.data.DictionaryElementType
-
public class DictionaryElementType extends java.lang.Object
WordNet 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
_name
The name of the dictionary.private static java.util.List
ALL_TYPES
A list of the different dictionary types.static DictionaryElementType
EXCEPTION
Property that defines an exception file.static DictionaryElementType
INDEX_WORD
Property to define an index file.static DictionaryElementType
SYNSET
Property to define a synset file.
-
Constructor Summary
Constructors Modifier Constructor Description private
DictionaryElementType(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.List
getAllDictionaryElementTypes()
Gets all the dictionary types.java.lang.String
getName()
Gets the name of this DictionaryElementType.int
hashCode()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
getName
public java.lang.String getName()
Gets the name of this DictionaryElementType.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-