|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarkableAPI
This interface defines public methods for accessing Markable objects.
Method Summary | |
---|---|
java.lang.String |
getAttributeValue(java.lang.String attributeName,
java.lang.String returnIfUndefined)
(API) Returns the string value of this Markable's attribute, or returnIfUndefined if attribute is undefined for this Markable. |
java.lang.String |
getID()
(API) Returns the ID string of this Markable, e.g. |
int |
getLeftmostDiscoursePosition()
(API) Returns the discourse position of the leftmost MMAX2DiscourseElement that this Markable object contains. |
MarkableLevel |
getMarkableLevel()
(API) Returns the MarkableLevel object that this Markable belongs to. |
int |
getRightmostDiscoursePosition()
(API) Returns the discourse position of the rightmost MMAX2DiscourseElement that this Markable object contains. |
void |
setAttributeValue(java.lang.String attributeName,
java.lang.String value)
(API) Sets this markable's attribute to value. |
java.lang.String |
toString()
(API) Returns the string representation of this Markable object. |
java.lang.String |
toTrimmedString(int maxWidth)
(API) Returns the trimmed string representation of this Markable object. |
Method Detail |
---|
java.lang.String getID()
java.lang.String getAttributeValue(java.lang.String attributeName, java.lang.String returnIfUndefined)
attributeName
- The name of the attribute whose value to return.returnIfUndefined
- The string to return if attribute is undefined.
void setAttributeValue(java.lang.String attributeName, java.lang.String value)
attributeName
- The attribute whose value to set.value
- The value to assign to the attribute.MarkableLevel getMarkableLevel()
MarkableLevel
that this Markable belongs to.java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toTrimmedString(int maxWidth)
maxWidth
- The maximum string width to return.
int getLeftmostDiscoursePosition()
MMAX2DiscourseElement
that this Markable object contains.
MMAX2DiscourseElement
that this Markable object contains. The discourse position is normally the base data element's position in the base data file.int getRightmostDiscoursePosition()
MMAX2DiscourseElement
that this Markable object contains.
MMAX2DiscourseElement
that this Markable object contains. The discourse position is normally the base data element's position in the base data file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |