Class DOMNamespaceIterator
java.lang.Object
org.apache.commons.jxpath.ri.model.dom.DOMNamespaceIterator
- All Implemented Interfaces:
NodeIterator
An iterator of namespaces of a DOM Node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMNamespaceIterator(NodePointer parent) Constructs a new DOMNamespaceIterator. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcollectNamespaces(List<Attr> attributes, Node node) Collect namespaces from attribute nodes.Gets the NodePointer at the current position.intGets the current iterator position.booleansetPosition(int position) Sets the new current position.
-
Field Details
-
parent
-
attributes
-
position
private int position
-
-
Constructor Details
-
DOMNamespaceIterator
Constructs a new DOMNamespaceIterator.- Parameters:
parent- parent pointer
-
-
Method Details
-
collectNamespaces
Collect namespaces from attribute nodes.- Parameters:
attributes- attribute listnode- target node
-
getNodePointer
Description copied from interface:NodeIteratorGets the NodePointer at the current position.- Specified by:
getNodePointerin interfaceNodeIterator- Returns:
- NodePointer
-
getPosition
public int getPosition()Description copied from interface:NodeIteratorGets the current iterator position.- Specified by:
getPositionin interfaceNodeIterator- Returns:
- int position
-
setPosition
public boolean setPosition(int position) Description copied from interface:NodeIteratorSets the new current position.- Specified by:
setPositionin interfaceNodeIterator- Parameters:
position- the position to set- Returns:
trueif there is a node atposition.
-