|
||||||||||
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.RangeFilter
A query filter to extract Datum objects from a List based on a consecutive span of children between a start and end index. Returns all children from the start index (inclusive) to just before the end index (exclusive).
DatumQuery
Constructor Summary | |
RangeFilter(int startIndex)
Creates a new instance of RangeFilter, from startIndex to the end of the node list. |
|
RangeFilter(int startIndex,
int endIndex)
Creates a new instance of RangeFilter, for the given range. |
|
RangeFilter(int startIndex,
int endIndex,
int count)
Creates a new instance of RangeFilter, for the given range. |
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 RangeFilter(int startIndex)
startIndex
- the beginning filter range indexpublic RangeFilter(int startIndex, int endIndex)
startIndex
- the beginning filter range indexendIndex
- the ending filter range indexpublic RangeFilter(int startIndex, int endIndex, int count)
startIndex
- the beginning filter range indexendIndex
- the ending filter range indexcount
- the number of nodes in the selection to filterMethod 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 |