net.didion.jwnl.data
Class Exc

java.lang.Object
  extended by net.didion.jwnl.data.Exc
All Implemented Interfaces:
java.io.Serializable, DictionaryElement

public final class Exc
extends java.lang.Object
implements DictionaryElement

Represents an entry in an exception file. Contains all of the exceptions for the given lemma.

See Also:
Serialized Form

Constructor Summary
Exc(POS pos, java.lang.String lemma, java.util.List exceptions)
          Creates a new exception entry.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if lemma and exceptions are equal.
 java.lang.String getException(int index)
          Get the exception at index index.
 java.lang.String[] getExceptionArray()
          Get the collection of Exc objects in array form.
 java.util.List getExceptions()
          Get the List of exceptions.
 int getExceptionsSize()
          Gets the number of exceptions.
 java.lang.Object getKey()
          Gets the lemma.
 java.lang.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()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exc

public Exc(POS pos,
           java.lang.String lemma,
           java.util.List exceptions)
Creates a new exception entry.

Parameters:
pos - - the part of speech
lemma - - the word's lemma form
exceptions - - the given exceptions
Method Detail

getType

public DictionaryElementType getType()
Gets the type of this exception entry.

Specified by:
getType in interface DictionaryElement

getPOS

public POS getPOS()
Gets the part of speech.

Returns:

getLemma

public java.lang.String getLemma()
Gets the lemma of the exception word.

Returns:
lemma

getException

public java.lang.String getException(int index)
Get the exception at index index.


getExceptionsSize

public int getExceptionsSize()
Gets the number of exceptions.

Returns:
int

getExceptionArray

public java.lang.String[] getExceptionArray()
Get the collection of Exc objects in array form.


getExceptions

public java.util.List getExceptions()
Get the List of exceptions.


getKey

public java.lang.Object getKey()
Gets the lemma.

Specified by:
getKey in interface DictionaryElement

equals

public boolean equals(java.lang.Object obj)
Returns true if lemma and exceptions are equal.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object