|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.eml.MMAX2.annotation.query.MMAX2QueryResultList
public class MMAX2QueryResultList
Constructor Summary | |
---|---|
MMAX2QueryResultList()
Creates a new empty instance of MMAX2QueryResultList |
|
MMAX2QueryResultList(java.util.ArrayList elements)
Creates a new instance of MMAX2QueryResultList of width 1 |
|
MMAX2QueryResultList(MMAX2QueryResultList toClone)
This constructor returns a clone of MMAX2QueryResultList toClone. |
|
MMAX2QueryResultList(MMAX2QueryResultList oldList,
int index)
This constructor returns a MMAX2QueryResultList with 1-element tuples copied from position index from oldList |
Method Summary | |
---|---|
void |
addSingleTuple(MMAX2QueryResultTuple tuple1)
This method adds a new copy of the the supplied tuple to this. |
void |
dump()
|
java.util.ArrayList |
getAttributeNamesToDisplay()
|
int |
getColumnIndexByColumnName(java.lang.String name)
This method returns the numerical index of the column in which markables from MarkableLevel name are stored. |
java.lang.String |
getCommand()
|
MMAX2QueryResultTupleElement |
getElementAtIndexFromColumn(int index,
int column)
This method returns from the MMAX2QueryResultTuple at list position index the Markable in the column column. |
MMAX2QueryResultTupleElement |
getElementAtIndexFromColumnToUse(int index)
This method returns from the MMAX2QueryResultTuple at list position index the Element in the column this.indexToUse. |
int |
getElementIndexBeforeDiscoursePosition(int discPos)
|
int |
getIndexToUse()
|
int |
getMaximumWidth()
|
int |
getResultSize()
(API) Returns the size of the query result as the number of MMAX2QueryResultTuple objects. |
MMAX2QueryResultTuple |
getTupleAtIndex(int index)
This method returns the MMAX2QueryResultTuple at list position index. |
int |
getWidth()
|
boolean |
isIndexSetByUser()
This method returns true if this ResultList was accessed via a variable which had a column specifier, false otherwise. |
void |
mergeAndAdd(MMAX2QueryResultTuple tuple1,
MMAX2QueryResultTuple tuple2,
int mergeMode)
This method merges two result tuples into a new one, and adds the new tuple to this. |
void |
setAttributeNamesToDisplay(java.util.ArrayList list)
|
void |
setCommand(java.lang.String _command)
|
void |
setIndexSetByUser()
|
void |
setIndexToUse(int index)
|
void |
toDefaultIndexToUse()
|
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public MMAX2QueryResultList(java.util.ArrayList elements)
public MMAX2QueryResultList()
public MMAX2QueryResultList(MMAX2QueryResultList toClone)
public MMAX2QueryResultList(MMAX2QueryResultList oldList, int index)
Method Detail |
---|
public final int getResultSize()
QueryResultListAPI
getResultSize
in interface QueryResultListAPI
MMAX2QueryResultTuple
objects in this list.public final int getElementIndexBeforeDiscoursePosition(int discPos)
public final void setCommand(java.lang.String _command)
public final java.lang.String getCommand()
public final void setAttributeNamesToDisplay(java.util.ArrayList list)
public final java.util.ArrayList getAttributeNamesToDisplay()
public final boolean isIndexSetByUser()
public final void setIndexSetByUser()
public final int getWidth()
public final int getMaximumWidth()
public final int getIndexToUse()
public final void setIndexToUse(int index)
public final void toDefaultIndexToUse()
public final void addSingleTuple(MMAX2QueryResultTuple tuple1)
public final void mergeAndAdd(MMAX2QueryResultTuple tuple1, MMAX2QueryResultTuple tuple2, int mergeMode)
public final MMAX2QueryResultTuple getTupleAtIndex(int index)
getTupleAtIndex
in interface QueryResultListAPI
index
- The (zero-based) position in this list of the result tuple to return.
MMAX2QueryResultTuple
object at index listIndex.public final MMAX2QueryResultTupleElement getElementAtIndexFromColumnToUse(int index)
public final MMAX2QueryResultTupleElement getElementAtIndexFromColumn(int index, int column)
public final int getColumnIndexByColumnName(java.lang.String name)
public final void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |