|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryResultTupleElementAPI
This interface defines public methods for accessing MMAX2QueryResultTupleElement objects. A MMAX2QueryResultTupleElement is a wrapper that contains either a Markable or a MMAX2DiscourseElement.
Method Summary | |
---|---|
MMAX2DiscourseElement |
getDiscourseElement()
(API) Returns the MMAX2DiscourseElement object that this MMAX2ResultTupleElement contains. |
java.lang.String |
getID()
(API) Returns the ID of the Markable or MMAX2DiscourseElement object that this MMAX2QueryResultTupleElement contains. |
int |
getLeftmostDiscoursePosition()
(API) Returns the discourse position of the leftmost MMAX2DiscourseElement that this MMAX2QueryResultTupleElement object contains. |
Markable |
getMarkable()
(API) Returns the Markable object that this MMAX2QueryResultTupleElement contains. |
int |
getRightmostDiscoursePosition()
(API) Returns the discourse position of the rightmost MMAX2DiscourseElement that this MMAX2QueryResultTupleElement object contains. |
boolean |
isDiscourseElement()
(API) Returns true if the content of this MMAX2QueryResultTupleElement is a MMAX2DiscourseElement object. |
boolean |
isMarkable()
(API) Returns true if the content of this MMAX2QueryResultTupleElement is a Markable object. |
java.lang.String |
toString()
(API) Returns the string representation of this MMAX2QueryResultTupleElement object. |
java.lang.String |
toTrimmedString(int maxWidth)
(API) Returns the trimmed string representation of this MMAX2QueryResultTupleElement object. |
Method Detail |
---|
boolean isMarkable()
Markable
object.
Markable
object, else false.Markable getMarkable()
Markable
object that this MMAX2QueryResultTupleElement contains.
Markable
object that this MMAX2QueryResultTupleElement contains, or null if isMarkable()
is false.boolean isDiscourseElement()
MMAX2DiscourseElement
object.
MMAX2DiscourseElement
object, else false.MMAX2DiscourseElement getDiscourseElement()
MMAX2DiscourseElement
object that this MMAX2ResultTupleElement contains.
MMAX2DiscourseElement
object that this MMAX2ResultTupleElement contains, or null if isDiscourseElement()
is false.java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toTrimmedString(int maxWidth)
maxWidth
- The maximum string width to return.
isMarkable()
returns true, this calls Markable.toTrimmedString(int maxWidth)
, else it calls MMAX2DiscourseElement.toString()
java.lang.String getID()
Markable
or MMAX2DiscourseElement
object that this MMAX2QueryResultTupleElement contains.
Markable
or MMAX2DiscourseElement
object that this MMAX2QueryResultTupleElement contains. If isMarkable()
returns true, this calls Markable.getID()
, else it calls MMAX2DiscourseElement.getID()
int getLeftmostDiscoursePosition()
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains.
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains. The discourse position is normally the base data element's position in the base data file. If isMarkable()
returns true, this calls Markable.getLeftmostDiscoursePosition
, else it calls MMAX2DiscourseElement.getDiscoursePosition()
int getRightmostDiscoursePosition()
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains.
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains. The discourse position is normally the base data element's position in the base data file. If isMarkable()
returns true, this calls Markable.getRightmostDiscoursePosition
, else it calls MMAX2DiscourseElement.getDiscoursePosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |