net.didion.jwnl.data
Class Exc

java.lang.Object
  extended by 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

Constructor Summary
Exc(POS pos, String lemma, List exceptions)
          Creates a new exception entry.
 
Method Summary
 boolean equals(Object obj)
          Returns true if lemma and exceptions are equal.
 String getException(int index)
          Get the exception at index index.
 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()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exc

public Exc(POS pos,
           String lemma,
           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 String getLemma()
Gets the lemma of the exception word.

Returns:
lemma

getException

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


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 interface DictionaryElement

equals

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

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.