Package org.apache.batik.dom
Class AbstractDocument.XPathExpr.Result
java.lang.Object
org.apache.batik.dom.AbstractDocument.XPathExpr.Result
- All Implemented Interfaces:
org.w3c.dom.xpath.XPathResult
- Enclosing class:
- AbstractDocument.XPathExpr
public class AbstractDocument.XPathExpr.Result
extends Object
implements org.w3c.dom.xpath.XPathResult
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 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.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 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 interfaceorg.w3c.dom.xpath.XPathResult
-
getBooleanValue
public boolean getBooleanValue()Gets the boolean value.- Specified by:
getBooleanValuein interfaceorg.w3c.dom.xpath.XPathResult
-
getNumberValue
public double getNumberValue()Gets the number value.- Specified by:
getNumberValuein interfaceorg.w3c.dom.xpath.XPathResult
-
getStringValue
Gets the string value.- Specified by:
getStringValuein interfaceorg.w3c.dom.xpath.XPathResult
-
getSingleNodeValue
Gets the single node value.- Specified by:
getSingleNodeValuein interfaceorg.w3c.dom.xpath.XPathResult
-
getInvalidIteratorState
public boolean getInvalidIteratorState()Returns whether the iterator has been invalidated by document modifications.- Specified by:
getInvalidIteratorStatein interfaceorg.w3c.dom.xpath.XPathResult
-
getSnapshotLength
public int getSnapshotLength()Returns the length of the snapshot.- Specified by:
getSnapshotLengthin interfaceorg.w3c.dom.xpath.XPathResult
-
iterateNext
DOM: ImplementXPathResult.iterateNext().- Specified by:
iterateNextin interfaceorg.w3c.dom.xpath.XPathResult
-
snapshotItem
Returns theith item in the snapshot.- Specified by:
snapshotItemin interfaceorg.w3c.dom.xpath.XPathResult
-