public abstract class NodeIterator extends java.lang.Object implements ExprEnvironment, java.util.Iterator<org.w3c.dom.Node>
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Node |
_contextNode |
protected ExprEnvironment |
_env |
protected int |
_position |
protected int |
_size |
protected static java.util.logging.Logger |
log |
Modifier | Constructor and Description |
---|---|
protected |
NodeIterator(ExprEnvironment env) |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
clone()
clones the iterator
|
void |
copy(NodeIterator src)
copies the iterator.
|
org.w3c.dom.Node |
getContextNode()
Gets the env node.
|
int |
getContextPosition()
Returns the position of the context node.
|
int |
getContextSize()
Returns the number of nodes in the context list.
|
org.w3c.dom.Node |
getCurrentNode()
Sets the current node.
|
XPathFun |
getFunction(java.lang.String name)
Returns the given variable
|
org.w3c.dom.Document |
getOwnerDocument()
Returns a document for creating nodes.
|
int |
getPositionIndex()
Returns the position index count.
|
StylesheetEnv |
getStylesheetEnv()
Returns the stylesheet environment.
|
Var |
getVar(java.lang.String name)
Returns the given variable
|
abstract boolean |
hasNext()
True if there's more data.
|
org.w3c.dom.Node |
next()
Iterator interface.
|
abstract org.w3c.dom.Node |
nextNode()
Returns the next node.
|
SelectedNode |
nextSelectedNode()
Returns the next selected node.
|
void |
remove()
remove is unsupported
|
org.w3c.dom.Node |
setContextNode(org.w3c.dom.Node node)
Sets the env node.
|
void |
setMorePositions(boolean more)
Set true if should test more positions.
|
java.lang.String |
stringValue(org.w3c.dom.Node node)
Returns the string-value of the ndoe.
|
java.lang.Object |
systemProperty(java.lang.String namespaceURI,
java.lang.String localName)
Returns the given system property.
|
protected static final java.util.logging.Logger log
protected ExprEnvironment _env
protected org.w3c.dom.Node _contextNode
protected int _position
protected int _size
protected NodeIterator(ExprEnvironment env)
public abstract boolean hasNext()
hasNext
in interface java.util.Iterator<org.w3c.dom.Node>
public abstract org.w3c.dom.Node nextNode() throws XPathException
XPathException
public org.w3c.dom.Node next()
next
in interface java.util.Iterator<org.w3c.dom.Node>
public SelectedNode nextSelectedNode() throws XPathException
XPathException
public org.w3c.dom.Node getCurrentNode()
getCurrentNode
in interface ExprEnvironment
public org.w3c.dom.Node getContextNode()
getContextNode
in interface ExprEnvironment
public org.w3c.dom.Node setContextNode(org.w3c.dom.Node node)
setContextNode
in interface ExprEnvironment
public int getContextPosition()
getContextPosition
in interface ExprEnvironment
public int getContextSize()
getContextSize
in interface ExprEnvironment
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface ExprEnvironment
public Var getVar(java.lang.String name)
getVar
in interface ExprEnvironment
public XPathFun getFunction(java.lang.String name)
getFunction
in interface ExprEnvironment
public StylesheetEnv getStylesheetEnv()
getStylesheetEnv
in interface ExprEnvironment
public java.lang.Object systemProperty(java.lang.String namespaceURI, java.lang.String localName)
systemProperty
in interface ExprEnvironment
public java.lang.String stringValue(org.w3c.dom.Node node)
stringValue
in interface ExprEnvironment
public int getPositionIndex()
public void setMorePositions(boolean more)
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public void copy(NodeIterator src)
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<org.w3c.dom.Node>
java.lang.UnsupportedOperationException