|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.data.MWEDescID
public class MWEDescID
Default implementation of IMWEDescID
.
Field Summary |
---|
Fields inherited from interface edu.mit.jmwe.data.IMWEDescID |
---|
formPattern |
Constructor Summary | |
---|---|
MWEDescID(IMWEDescID rootID,
String infForm)
Constructs this description ID from the MWE's root ID and inflected form. |
|
MWEDescID(String rootForm,
MWEPOS pos)
Constructs this description ID from the MWE's root (non inflected) form and part of speech. |
Method Summary | |
---|---|
int |
compareTo(IMWEDescID id)
|
boolean |
equals(Object obj)
|
String |
getForm()
Returns the object's surface form text, exactly as it appears in its original context, with capitalization intact. |
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()
|
String |
toString()
|
static String |
toString(IMWEDescID id)
Returns the String representation of the given id. |
static void |
toString(IMWEDescID id,
Appendable buf)
Returns the String representation of the given id as: form_POS/infform |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MWEDescID(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, String infForm)
rootID
- the root id of the MWEinfForm
- inflected form of the MWE. Must be delimited by underscores.Method Detail |
---|
public IMWEDescID getRootID()
IMWEDescID
getRootID
in interface IMWEDescID
public String getForm()
IHasForm
null
.
getForm
in interface IHasForm
null
.public String getInflectedForm()
IMWEDescID
getInflectedForm
in interface IMWEDescID
public MWEPOS getPOS()
IHasMWEPOS
null
.
getPOS
in interface IHasMWEPOS
public int compareTo(IMWEDescID id)
compareTo
in interface Comparable<IMWEDescID>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public static String toString(IMWEDescID id)
id
- the id to be represented as a String.
public static void toString(IMWEDescID id, Appendable buf) throws IOException
id
- the id to be represented as a String.buf
- the appendable buffer used to build the String
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |