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 booleanequals(Object obj)Returns true if lemma and exceptions are equal.StringgetException(int index)Get the exception at indexindex.String[]getExceptionArray()Get the collection of Exc objects in array form.ListgetExceptions()Get the List of exceptions.intgetExceptionsSize()Gets the number of exceptions.ObjectgetKey()Gets the lemma.StringgetLemma()Gets the lemma of the exception word.POSgetPOS()Gets the part of speech.DictionaryElementTypegetType()Gets the type of this exception entry.inthashCode()StringtoString()
-
-
-
Method Detail
-
getType
public DictionaryElementType getType()
Gets the type of this exception entry.- Specified by:
getTypein 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:
getKeyin interfaceDictionaryElement
-
equals
public boolean equals(Object obj)
Returns true if lemma and exceptions are equal.
-
-