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
XPathExceptionpublic org.w3c.dom.Node next()
next in interface java.util.Iterator<org.w3c.dom.Node>public SelectedNode nextSelectedNode() throws XPathException
XPathExceptionpublic org.w3c.dom.Node getCurrentNode()
getCurrentNode in interface ExprEnvironmentpublic org.w3c.dom.Node getContextNode()
getContextNode in interface ExprEnvironmentpublic org.w3c.dom.Node setContextNode(org.w3c.dom.Node node)
setContextNode in interface ExprEnvironmentpublic int getContextPosition()
getContextPosition in interface ExprEnvironmentpublic int getContextSize()
getContextSize in interface ExprEnvironmentpublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface ExprEnvironmentpublic Var getVar(java.lang.String name)
getVar in interface ExprEnvironmentpublic XPathFun getFunction(java.lang.String name)
getFunction in interface ExprEnvironmentpublic StylesheetEnv getStylesheetEnv()
getStylesheetEnv in interface ExprEnvironmentpublic java.lang.Object systemProperty(java.lang.String namespaceURI,
java.lang.String localName)
systemProperty in interface ExprEnvironmentpublic java.lang.String stringValue(org.w3c.dom.Node node)
stringValue in interface ExprEnvironmentpublic int getPositionIndex()
public void setMorePositions(boolean more)
public abstract java.lang.Object clone()
clone in class java.lang.Objectpublic void copy(NodeIterator src)
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iterator<org.w3c.dom.Node>java.lang.UnsupportedOperationException