net.didion.jwnl.data
Class Exc

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

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)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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()
           
 java.lang.Object getKey()
          Get a key that can be used to index this element.
 java.lang.String getLemma()
           
 POS getPOS()
           
 DictionaryElementType getType()
          Get the element's type.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exc

public Exc(POS pos,
           java.lang.String lemma,
           java.util.List exceptions)
Method Detail

getType

public DictionaryElementType getType()
Description copied from interface: DictionaryElement
Get the element's type.

Specified by:
getType in interface DictionaryElement

getPOS

public POS getPOS()

getLemma

public java.lang.String getLemma()
Returns:
String the excepted word.

getException

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


getExceptionsSize

public int getExceptionsSize()

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()
Description copied from interface: DictionaryElement
Get a key that can be used to index this element.

Specified by:
getKey in interface DictionaryElement

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()

hashCode

public int hashCode()



JWNL homepage.