|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.item.ExceptionEntryID
public class ExceptionEntryID
Default implementation of IExceptionEntryID.
| Constructor Summary | |
|---|---|
ExceptionEntryID(java.lang.String surfaceForm,
POS pos)
Creates a new exception entry id with the specified information. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
POS |
getPOS()
Returns the associated part of speech for this object. |
java.lang.String |
getSurfaceForm()
Returns the surface form (i.e., not the root form) of the word for which a morphological exception entry is desired. |
int |
hashCode()
|
static ExceptionEntryID |
parseExceptionEntryID(java.lang.String value)
Convenience method for transforming the result of the toString()
method back into an IExceptionEntryID. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionEntryID(java.lang.String surfaceForm,
POS pos)
surfaceForm - the surface form for the entrypos - the part of speech for the entry
java.lang.NullPointerException - if either argument is null
java.lang.IllegalArgumentException - if the surface form is empty or all whitespace| Method Detail |
|---|
public java.lang.String getSurfaceForm()
IExceptionEntryID
getSurfaceForm in interface IExceptionEntryIDpublic POS getPOS()
IHasPOSnull.
getPOS in interface IHasPOSnull if none.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static ExceptionEntryID parseExceptionEntryID(java.lang.String value)
toString()
method back into an IExceptionEntryID.
value - the string to parse
java.lang.NullPointerException - if the specified string is null
java.lang.IllegalArgumentException - if the specified string does not conform to an exception
entry id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||