public class MWEDescID extends java.lang.Object implements IMWEDescID
IMWEDescID.formPattern| Constructor and Description |
|---|
MWEDescID(IMWEDescID rootID,
java.lang.String infForm)
Constructs this description ID from the MWE's root ID and inflected form.
|
MWEDescID(java.lang.String rootForm,
MWEPOS pos)
Constructs this description ID from the MWE's root (non inflected) form
and part of speech.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IMWEDescID id) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getForm()
Returns the object's surface form text, exactly as it appears in its
original context, with capitalization intact.
|
java.lang.String |
getInflectedForm()
Returns an inflected form of the MWE associated with this ID.
|
MWEPOS |
getPOS()
Returns the part of speech of this object.
|
IMWEDescID |
getRootID()
Returns the root ID of this decription ID.
|
int |
hashCode() |
java.lang.String |
toString() |
static java.lang.String |
toString(IMWEDescID id)
Returns the String representation of the given id.
|
static void |
toString(IMWEDescID id,
java.lang.Appendable buf)
Returns the String representation of the given id as: form_POS/infform
|
public MWEDescID(java.lang.String rootForm,
MWEPOS pos)
null.rootForm - the non inflected form of the MWE associated with this id.
Must be delimited by underscores.pos - part of speech of the MWE associated with this id.public MWEDescID(IMWEDescID rootID, java.lang.String infForm)
rootID - the root id of the MWEinfForm - inflected form of the MWE. Must be delimited by underscores.public IMWEDescID getRootID()
IMWEDescIDgetRootID in interface IMWEDescIDpublic java.lang.String getForm()
IHasFormnull.public java.lang.String getInflectedForm()
IMWEDescIDgetInflectedForm in interface IMWEDescIDpublic MWEPOS getPOS()
IHasMWEPOSnull.getPOS in interface IHasMWEPOSpublic int compareTo(IMWEDescID id)
compareTo in interface java.lang.Comparable<IMWEDescID>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toString(IMWEDescID id)
id - the id to be represented as a String.public static void toString(IMWEDescID id, java.lang.Appendable buf) throws java.io.IOException
id - the id to be represented as a String.buf - the appendable buffer used to build the Stringjava.io.IOException - if there is a problem appending to the bufferCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.