|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.AbstractDocument.XPathExpr.Result
public class AbstractDocument.XPathExpr.Result
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 | |
---|---|
protected boolean |
booleanValue
The boolean value. |
protected NodeList |
iterator
The NodeList for iterators. |
protected int |
iteratorPosition
The position of the iterator. |
protected double |
numberValue
The number value. |
protected short |
resultType
The result type. |
protected Node |
singleNodeValue
The single node value. |
protected String |
stringValue
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 | |
---|---|
AbstractDocument.XPathExpr.Result(boolean b)
Creates a new boolean Result object. |
|
AbstractDocument.XPathExpr.Result(double d)
Creates a new number Result object. |
|
AbstractDocument.XPathExpr.Result(NodeList nl,
short type)
Creates a new node iterator Result object. |
|
AbstractDocument.XPathExpr.Result(Node n,
short type)
Creates a new single node Result object. |
|
AbstractDocument.XPathExpr.Result(String s)
Creates a new string Result object. |
Method Summary | |
---|---|
boolean |
getBooleanValue()
Gets the boolean value. |
boolean |
getInvalidIteratorState()
Returns whether the iterator has been invalidated by document modifications. |
double |
getNumberValue()
Gets the number value. |
short |
getResultType()
Gets the result type. |
Node |
getSingleNodeValue()
Gets the single node value. |
int |
getSnapshotLength()
Returns the length of the snapshot. |
String |
getStringValue()
Gets the string value. |
Node |
iterateNext()
DOM: Implement XPathResult.iterateNext() . |
Node |
snapshotItem(int i)
Returns the i th item in the snapshot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected short resultType
protected double numberValue
protected String stringValue
protected boolean booleanValue
protected Node singleNodeValue
protected NodeList iterator
protected int iteratorPosition
Constructor Detail |
---|
public AbstractDocument.XPathExpr.Result(Node n, short type)
public AbstractDocument.XPathExpr.Result(boolean b) throws TransformerException
TransformerException
public AbstractDocument.XPathExpr.Result(double d) throws TransformerException
TransformerException
public AbstractDocument.XPathExpr.Result(String s)
public AbstractDocument.XPathExpr.Result(NodeList nl, short type)
Method Detail |
---|
public short getResultType()
getResultType
in interface org.w3c.dom.xpath.XPathResult
public boolean getBooleanValue()
getBooleanValue
in interface org.w3c.dom.xpath.XPathResult
public double getNumberValue()
getNumberValue
in interface org.w3c.dom.xpath.XPathResult
public String getStringValue()
getStringValue
in interface org.w3c.dom.xpath.XPathResult
public Node getSingleNodeValue()
getSingleNodeValue
in interface org.w3c.dom.xpath.XPathResult
public boolean getInvalidIteratorState()
getInvalidIteratorState
in interface org.w3c.dom.xpath.XPathResult
public int getSnapshotLength()
getSnapshotLength
in interface org.w3c.dom.xpath.XPathResult
public Node iterateNext()
XPathResult.iterateNext()
.
iterateNext
in interface org.w3c.dom.xpath.XPathResult
public Node snapshotItem(int i)
i
th item in the snapshot.
snapshotItem
in interface org.w3c.dom.xpath.XPathResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |