public final class Exc extends java.lang.Object implements DictionaryElement
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_cachedToString
The cached to string value.
|
private java.util.List |
_exceptions
All the exceptions for
lemma. |
private java.lang.String |
_exceptionString
The exception string.
|
private java.lang.String |
_lemma
The excepted word
|
private POS |
_pos
The part of speech.
|
(package private) static long |
serialVersionUID
Unique identifier.
|
| Constructor and Description |
|---|
Exc(POS pos,
java.lang.String lemma,
java.util.List exceptions)
Creates a new exception entry.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private java.lang.String |
getExceptionsAsString()
Gets the exceptions as a string bundle.
|
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() |
private void |
readObject(java.io.ObjectInputStream in) |
java.lang.String |
toString() |
static final long serialVersionUID
private POS _pos
private java.lang.String _lemma
private java.util.List _exceptions
lemma.private java.lang.String _exceptionString
private transient java.lang.String _cachedToString
public Exc(POS pos, java.lang.String lemma, java.util.List exceptions)
pos - - the part of speechlemma - - the word's lemma formexceptions - - the given exceptionspublic DictionaryElementType getType()
getType in interface DictionaryElementpublic POS getPOS()
public java.lang.String getLemma()
public java.lang.String getException(int index)
index.public int getExceptionsSize()
public java.lang.String[] getExceptionArray()
public java.util.List getExceptions()
public java.lang.Object getKey()
getKey in interface DictionaryElementpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprivate java.lang.String getExceptionsAsString()
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException