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.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanThe boolean value.protected NodeListThe NodeList for iterators.protected intThe position of the iterator.protected doubleThe number value.protected shortThe result type.protected NodeThe single node value.protected StringThe string value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the boolean value.booleanReturns whether the iterator has been invalidated by document modifications.doubleGets the number value.shortGets the result type.Gets the single node value.intReturns the length of the snapshot.Gets the string value.DOM: ImplementXPathResult.iterateNext().snapshotItem(int i) Returns theith 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:
getResultTypein interfaceXPathResult
-
getBooleanValue
public boolean getBooleanValue()Gets the boolean value.- Specified by:
getBooleanValuein interfaceXPathResult
-
getNumberValue
public double getNumberValue()Gets the number value.- Specified by:
getNumberValuein interfaceXPathResult
-
getStringValue
Gets the string value.- Specified by:
getStringValuein interfaceXPathResult
-
getSingleNodeValue
Gets the single node value.- Specified by:
getSingleNodeValuein interfaceXPathResult
-
getInvalidIteratorState
public boolean getInvalidIteratorState()Returns whether the iterator has been invalidated by document modifications.- Specified by:
getInvalidIteratorStatein interfaceXPathResult
-
getSnapshotLength
public int getSnapshotLength()Returns the length of the snapshot.- Specified by:
getSnapshotLengthin interfaceXPathResult
-
iterateNext
DOM: ImplementXPathResult.iterateNext().- Specified by:
iterateNextin interfaceXPathResult
-
snapshotItem
Returns theith item in the snapshot.- Specified by:
snapshotItemin interfaceXPathResult
-