Package org.apache.batik.dom
Class AbstractDocument.XPathExpr.Result
java.lang.Object
org.apache.batik.dom.AbstractDocument.XPathExpr.Result
- All Implemented Interfaces:
XPathResult
- Enclosing class:
- AbstractDocument.XPathExpr
XPathResult implementation.
XXX Namespace nodes are not handled correctly, since Xalan returns
namespace nodes as simply the attribute node that caused the
namespace to be in scope on the element in question. Thus it
is impossible to tell the difference between a selected
attribute that begins with 'xmlns' and an XPath namespace node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
The boolean value.protected NodeList
The NodeList for iterators.protected int
The position of the iterator.protected double
The number value.protected short
The result type.protected Node
The single node value.protected String
The string value.Fields inherited from interface org.w3c.dom.xpath.XPathResult
ANY_TYPE, ANY_UNORDERED_NODE_TYPE, BOOLEAN_TYPE, FIRST_ORDERED_NODE_TYPE, NUMBER_TYPE, ORDERED_NODE_ITERATOR_TYPE, ORDERED_NODE_SNAPSHOT_TYPE, STRING_TYPE, UNORDERED_NODE_ITERATOR_TYPE, UNORDERED_NODE_SNAPSHOT_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the boolean value.boolean
Returns whether the iterator has been invalidated by document modifications.double
Gets the number value.short
Gets the result type.Gets the single node value.int
Returns the length of the snapshot.Gets the string value.DOM: ImplementXPathResult.iterateNext()
.snapshotItem
(int i) Returns thei
th item in the snapshot.
-
Field Details
-
resultType
protected short resultTypeThe result type. -
numberValue
protected double numberValueThe number value. -
stringValue
The string value. -
booleanValue
protected boolean booleanValueThe boolean value. -
singleNodeValue
The single node value. -
iterator
The NodeList for iterators. -
iteratorPosition
protected int iteratorPositionThe position of the iterator.
-
-
Constructor Details
-
Result
Creates a new single node Result object. -
Result
Creates a new boolean Result object.- Throws:
TransformerException
-
Result
Creates a new number Result object.- Throws:
TransformerException
-
Result
Creates a new string Result object. -
Result
Creates a new node iterator Result object.
-
-
Method Details
-
getResultType
public short getResultType()Gets the result type.- Specified by:
getResultType
in interfaceXPathResult
-
getBooleanValue
public boolean getBooleanValue()Gets the boolean value.- Specified by:
getBooleanValue
in interfaceXPathResult
-
getNumberValue
public double getNumberValue()Gets the number value.- Specified by:
getNumberValue
in interfaceXPathResult
-
getStringValue
Gets the string value.- Specified by:
getStringValue
in interfaceXPathResult
-
getSingleNodeValue
Gets the single node value.- Specified by:
getSingleNodeValue
in interfaceXPathResult
-
getInvalidIteratorState
public boolean getInvalidIteratorState()Returns whether the iterator has been invalidated by document modifications.- Specified by:
getInvalidIteratorState
in interfaceXPathResult
-
getSnapshotLength
public int getSnapshotLength()Returns the length of the snapshot.- Specified by:
getSnapshotLength
in interfaceXPathResult
-
iterateNext
DOM: ImplementXPathResult.iterateNext()
.- Specified by:
iterateNext
in interfaceXPathResult
-
snapshotItem
Returns thei
th item in the snapshot.- Specified by:
snapshotItem
in interfaceXPathResult
-