|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.bellows.query.QueryProcessor org.umber.bellows.query.IndexFilter
A query filter to extract Datum objects from a List based on an array index. Returns one result if a child Datum exists at that index, or empty results if the index is out of bounds.
DatumQuery
Constructor Summary | |
IndexFilter(int index)
Creates a new instance of IndexFilter. |
|
IndexFilter(int index,
int count)
Creates a new instance of IndexFilter with given index. |
Method Summary | |
boolean |
shouldProcess(java.lang.Object node)
Determines if the given object should be processed during the traversal. |
void |
start(java.util.List nodes)
Starts a new traversal. |
Methods inherited from class org.umber.bellows.query.QueryProcessor |
end, processNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexFilter(int index, int count)
index
- index of node to selectcount
- the number of nodes in the selection to filterpublic IndexFilter(int index)
index
- index of node to selectMethod Detail |
public void start(java.util.List nodes)
start
in interface INodeProcessor
start
in class QueryProcessor
nodes
- the list of nodes that will later be traversedpublic boolean shouldProcess(java.lang.Object node)
shouldProcess
in class QueryProcessor
node
- the object to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |