net.sf.extjwnl.data
Class Exc

java.lang.Object
  extended by net.sf.extjwnl.data.BaseDictionaryElement
      extended by net.sf.extjwnl.data.Exc
All Implemented Interfaces:
Serializable, DictionaryElement, Owned

public class Exc
extends BaseDictionaryElement

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.

Author:
John Didion , Aliaksandr Autayeu
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.extjwnl.data.BaseDictionaryElement
dictionary
 
Constructor Summary
Exc(Dictionary dictionary, POS pos, String lemma, List<String> exceptions)
          Creates a new exception entry.
 
Method Summary
 boolean equals(Object o)
           
 List<String> getExceptions()
          Returns list of exceptions (base forms).
 Object getKey()
          Returns a key that can be used to index this element.
 String getLemma()
          Returns the lemma (derivation) of the exception word.
 POS getPOS()
          Returns element's part of speech.
 DictionaryElementType getType()
          Returns the element's type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.sf.extjwnl.data.BaseDictionaryElement
getDictionary, setDictionary
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exc

public Exc(Dictionary dictionary,
           POS pos,
           String lemma,
           List<String> exceptions)
    throws JWNLException
Creates a new exception entry.

Parameters:
dictionary - the owner of the exception
pos - the exception part of speech
lemma - the word's lemma form
exceptions - the given exceptions
Throws:
JWNLException - JWNLException
Method Detail

getType

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

Returns:
the element's type

getPOS

public POS getPOS()
Description copied from interface: DictionaryElement
Returns element's part of speech.

Returns:
element's part of speech

getKey

public Object getKey()
Description copied from interface: DictionaryElement
Returns a key that can be used to index this element.

Returns:
a key that can be used to index this element

getLemma

public String getLemma()
Returns the lemma (derivation) of the exception word.

Returns:
the lemma (derivation) of the exception word

getExceptions

public List<String> getExceptions()
Returns list of exceptions (base forms).

Returns:
list of exceptions (base forms)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.