|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.oXML.xpath.iterator.SubNodeIterator
NodeIterator that shows nodes that: a) are presented by the parent NodeIterator (set at construction time) b) are accepted by the NodeFilter (set at construction time)
| Field Summary | |
protected NodeIterator |
parent
|
| Constructor Summary | |
SubNodeIterator(NodeIterator parent,
NodeFilter filter)
construct a SubNodeIterator returning all types of nodes (SHOW_ALL) |
|
SubNodeIterator(NodeIterator parent,
NodeFilter filter,
int whatToShow)
construct a SubNodeIterator returning only the specified type of node |
|
| Method Summary | |
NodeFilter |
getFilter()
|
protected abstract Node |
getNextNode()
overload to create a SubNodeIterator that has a different iteration pattern than the parent NodeIterator. |
int |
getWhatToShow()
|
Node |
nextNode()
advance the current node in this nodeset. |
int |
position()
get the position of the current node within this nodeset |
void |
setFilter(NodeFilter filter)
|
void |
setWhatToShow(int whatToShow)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected NodeIterator parent
| Constructor Detail |
public SubNodeIterator(NodeIterator parent,
NodeFilter filter)
public SubNodeIterator(NodeIterator parent,
NodeFilter filter,
int whatToShow)
NodeFilter| Method Detail |
public int position()
NodeIterator
position in interface NodeIteratorpublic void setWhatToShow(int whatToShow)
public final Node nextNode()
NodeIterator
nextNode in interface NodeIteratorprotected abstract Node getNextNode()
public int getWhatToShow()
public NodeFilter getFilter()
public void setFilter(NodeFilter filter)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||