|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.MMAX2.annotation.query.MMAX2QueryResultTupleElement
public class MMAX2QueryResultTupleElement
Constructor Summary | |
---|---|
MMAX2QueryResultTupleElement(java.lang.Object object)
Creates a new instance of MMAX2QueryResultTupleElement |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.util.HashMap |
getAttributes()
|
java.lang.String |
getAttributeValue(java.lang.String attributeName,
java.lang.String valIfUndefined)
|
MMAX2DiscourseElement |
getDiscourseElement()
(API) Returns the MMAX2DiscourseElement object that this MMAX2ResultTupleElement contains. |
MMAX2DiscourseElement[] |
getDiscourseElements(MMAX2Discourse discourse)
This method returns an array of all MMAX2DiscourseElement objects in the span of this . |
java.lang.String[][] |
getFragments()
|
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. |
java.lang.String |
getLevelName()
|
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. |
int |
getSize()
|
boolean |
isDiscontinuous()
|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MMAX2QueryResultTupleElement(java.lang.Object object)
Method Detail |
---|
public final MMAX2DiscourseElement[] getDiscourseElements(MMAX2Discourse discourse)
public final java.lang.String getLevelName()
public final boolean isMarkable()
QueryResultTupleElementAPI
Markable
object.
isMarkable
in interface QueryResultTupleElementAPI
Markable
object, else false.public final Markable getMarkable()
QueryResultTupleElementAPI
Markable
object that this MMAX2QueryResultTupleElement contains.
getMarkable
in interface QueryResultTupleElementAPI
Markable
object that this MMAX2QueryResultTupleElement contains, or null if isMarkable()
is false.public final boolean isDiscourseElement()
QueryResultTupleElementAPI
MMAX2DiscourseElement
object.
isDiscourseElement
in interface QueryResultTupleElementAPI
MMAX2DiscourseElement
object, else false.public final MMAX2DiscourseElement getDiscourseElement()
QueryResultTupleElementAPI
MMAX2DiscourseElement
object that this MMAX2ResultTupleElement contains.
getDiscourseElement
in interface QueryResultTupleElementAPI
MMAX2DiscourseElement
object that this MMAX2ResultTupleElement contains, or null if isDiscourseElement()
is false.public final java.lang.String getAttributeValue(java.lang.String attributeName, java.lang.String valIfUndefined)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int getLeftmostDiscoursePosition()
QueryResultTupleElementAPI
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains.
getLeftmostDiscoursePosition
in interface QueryResultTupleElementAPI
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()
public final int getRightmostDiscoursePosition()
QueryResultTupleElementAPI
MMAX2DiscourseElement
that this MMAX2QueryResultTupleElement object contains.
getRightmostDiscoursePosition
in interface QueryResultTupleElementAPI
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()
public final java.util.HashMap getAttributes()
public final int getSize()
public final boolean isDiscontinuous()
public final java.lang.String[][] getFragments()
public final java.lang.String getID()
QueryResultTupleElementAPI
Markable
or MMAX2DiscourseElement
object that this MMAX2QueryResultTupleElement contains.
getID
in interface QueryResultTupleElementAPI
Markable
or MMAX2DiscourseElement
object that this MMAX2QueryResultTupleElement contains. If isMarkable()
returns true, this calls Markable.getID()
, else it calls MMAX2DiscourseElement.getID()
public final java.lang.String toTrimmedString(int maxWidth)
QueryResultTupleElementAPI
toTrimmedString
in interface QueryResultTupleElementAPI
maxWidth
- The maximum string width to return.
isMarkable()
returns true, this calls Markable.toTrimmedString(int maxWidth)
, else it calls MMAX2DiscourseElement.toString()
public final java.lang.String toString()
QueryResultTupleElementAPI
toString
in interface QueryResultTupleElementAPI
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |