|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.data.AbstractMWEDesc.AbstractPart
protected abstract class AbstractMWEDesc.AbstractPart
Default implementation of the IPart
interface.
Constructor Summary | |
---|---|
AbstractMWEDesc.AbstractPart(String form,
int index)
Constructs a new part. |
Method Summary | |
---|---|
int |
compareTo(IMWEDesc.IPart o)
|
boolean |
equals(Object obj)
|
String |
getForm()
Returns the object's surface form text, exactly as it appears in its original context, with capitalization intact. |
int |
getIndex()
Returns the index of this part in the multi-word expression, always zero or greater. |
IMWEDesc |
getParent()
Returns the MWE description of which this part is a part. |
int |
hashCode()
|
boolean |
isStopWord()
Returns true if the part is a stop word, that is, a word that is not usually useful for searching. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractMWEDesc.AbstractPart(String form, int index)
form
- the surface text of the part in the multi-word expression,
in its original form. It's trimmed form not be
null
or contain whitespace.index
- the index of the part in the multi-word expression. May
not be less than 0.
NullPointerException
- if the parent or text is null
.
IllegalArgumentException
- if the trimmed text is empty or contains whitespace, or
if the index is less than 0.Method Detail |
---|
public IMWEDesc getParent()
IMWEDesc.IPart
null
.
getParent
in interface IMWEDesc.IPart
public String getForm()
IHasForm
null
.
getForm
in interface IHasForm
null
.public int getIndex()
IMWEDesc.IPart
getIndex
in interface IMWEDesc.IPart
public boolean isStopWord()
IMWEDesc.IPart
isStopWord
in interface IMWEDesc.IPart
true
if the part is a stop word;
false
otherwise.public String toString()
toString
in class Object
public int compareTo(IMWEDesc.IPart o)
compareTo
in interface Comparable<IMWEDesc.IPart>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |