|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 whitespaceMethod Detail |
---|
public java.lang.String getSurfaceForm()
IExceptionEntryID
getSurfaceForm
in interface IExceptionEntryID
public POS getPOS()
IHasPOS
null
.
getPOS
in interface IHasPOS
null
if none.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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 |