Package net.didion.jwnl.data
Class Exc
java.lang.Object
net.didion.jwnl.data.Exc
- All Implemented Interfaces:
Serializable
,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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if lemma and exceptions are equal.getException
(int index) Get the exception at indexindex
.String[]
Get the collection of Exc objects in array form.Get the List of exceptions.private String
Gets the exceptions as a string bundle.int
Gets the number of exceptions.getKey()
Gets the lemma.getLemma()
Gets the lemma of the exception word.getPOS()
Gets the part of speech.getType()
Gets the type of this exception entry.int
hashCode()
private void
toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUIDUnique identifier.- See Also:
-
_pos
The part of speech. -
_lemma
The excepted word -
_exceptions
All the exceptions forlemma
. -
_exceptionString
The exception string. -
_cachedToString
The cached to string value.
-
-
Constructor Details
-
Exc
Creates a new exception entry.- Parameters:
pos
- - the part of speechlemma
- - the word's lemma formexceptions
- - the given exceptions
-
-
Method Details
-
getType
Gets the type of this exception entry.- Specified by:
getType
in interfaceDictionaryElement
-
getPOS
Gets the part of speech.- Returns:
-
getLemma
Gets the lemma of the exception word.- Returns:
- lemma
-
getException
Get the exception at indexindex
. -
getExceptionsSize
public int getExceptionsSize()Gets the number of exceptions.- Returns:
- int
-
getExceptionArray
Get the collection of Exc objects in array form. -
getExceptions
Get the List of exceptions. -
getKey
Gets the lemma.- Specified by:
getKey
in interfaceDictionaryElement
-
equals
Returns true if lemma and exceptions are equal. -
toString
-
hashCode
public int hashCode() -
getExceptionsAsString
Gets the exceptions as a string bundle.- Returns:
-
readObject
- Throws:
IOException
ClassNotFoundException
-