public class ExceptionEntryID extends Object implements IExceptionEntryID
IExceptionEntryID.| Constructor and Description |
|---|
ExceptionEntryID(String surfaceForm,
POS pos)
Creates a new exception entry id with the specified information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
POS |
getPOS()
Returns the associated part of speech for this object.
|
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(String value)
Convenience method for transforming the result of the
toString()
method back into an IExceptionEntryID. |
String |
toString() |
public ExceptionEntryID(String surfaceForm, POS pos)
surfaceForm - the surface form for the entrypos - the part of speech for the entryNullPointerException - if either argument is nullIllegalArgumentException - if the surface form is empty or all whitespacepublic String getSurfaceForm()
IExceptionEntryIDgetSurfaceForm in interface IExceptionEntryIDpublic POS getPOS()
IHasPOSnull.public static ExceptionEntryID parseExceptionEntryID(String value)
toString()
method back into an IExceptionEntryID.value - the string to parseNullPointerException - if the specified string is nullIllegalArgumentException - if the specified string does not conform to an exception
entry idCopyright © 2018. All rights reserved.