|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.model.jdom.JDOMNamespaceIterator
public class JDOMNamespaceIterator
An iterator of namespaces of a DOM Node.
Field Summary | |
---|---|
private java.util.List |
namespaces
|
private NodePointer |
parent
|
private int |
position
|
private java.util.Set |
prefixes
|
Constructor Summary | |
---|---|
JDOMNamespaceIterator(NodePointer parent)
Create a new JDOMNamespaceIterator. |
Method Summary | |
---|---|
private void |
collectNamespaces(org.jdom.Element element)
Collect the namespaces from a JDOM Element. |
NodePointer |
getNodePointer()
Get the NodePointer at the current position. |
int |
getPosition()
Get the current iterator position. |
boolean |
setPosition(int position)
Set the new current position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private NodePointer parent
private java.util.List namespaces
private java.util.Set prefixes
private int position
Constructor Detail |
---|
public JDOMNamespaceIterator(NodePointer parent)
parent
- the parent NodePointer.Method Detail |
---|
private void collectNamespaces(org.jdom.Element element)
element
- the source Elementpublic NodePointer getNodePointer()
NodeIterator
getNodePointer
in interface NodeIterator
public int getPosition()
NodeIterator
getPosition
in interface NodeIterator
public boolean setPosition(int position)
NodeIterator
setPosition
in interface NodeIterator
position
- the position to set
true
if there is a node at position
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |