Package net.didion.jwnl.data
Class Exc
- java.lang.Object
-
- net.didion.jwnl.data.Exc
-
- All Implemented Interfaces:
Serializable
,DictionaryElement
public final class Exc extends Object implements DictionaryElement
Represents an entry in an exception file. Contains all of the exceptions for the given lemma. Exception lists are alphabetized lists of inflected forms of words and their base forms. The first field of each line is an inflected form, followed by a space separated list of one or more base forms of the word. There is one exception list file for each syntactic category. From wndb.5WN in WordNet base documentation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Returns true if lemma and exceptions are equal.String
getException(int index)
Get the exception at indexindex
.String[]
getExceptionArray()
Get the collection of Exc objects in array form.List
getExceptions()
Get the List of exceptions.int
getExceptionsSize()
Gets the number of exceptions.Object
getKey()
Gets the lemma.String
getLemma()
Gets the lemma of the exception word.POS
getPOS()
Gets the part of speech.DictionaryElementType
getType()
Gets the type of this exception entry.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getType
public DictionaryElementType getType()
Gets the type of this exception entry.- Specified by:
getType
in interfaceDictionaryElement
-
getPOS
public POS getPOS()
Gets the part of speech.- Returns:
-
getLemma
public String getLemma()
Gets the lemma of the exception word.- Returns:
- lemma
-
getException
public String getException(int index)
Get the exception at indexindex
.
-
getExceptionsSize
public int getExceptionsSize()
Gets the number of exceptions.- Returns:
- int
-
getExceptionArray
public String[] getExceptionArray()
Get the collection of Exc objects in array form.
-
getExceptions
public List getExceptions()
Get the List of exceptions.
-
getKey
public Object getKey()
Gets the lemma.- Specified by:
getKey
in interfaceDictionaryElement
-
equals
public boolean equals(Object obj)
Returns true if lemma and exceptions are equal.
-
-