public class TreeFragmentResult extends XSLTFunctionResult
BOOLEAN, NODE_SET, NUMBER, STRING, USER_DEFINEDTREE_FRAGMENT| Constructor | Description |
|---|---|
TreeFragmentResult() |
Creates a new TreeFragmentResult that represents
a "empty" fragment.
|
TreeFragmentResult(NodeSet nodes) |
Creates a new TreeFragmentResult with the given NodeSet.
|
TreeFragmentResult(XPathNode node) |
Creates a new TreeFragmentResult with the given XPathNode.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
booleanValue() |
Returns the value of this ExprResult as a boolean
|
boolean |
equals(XPathResult result) |
Returns true if the given expression is the same tyoe as
this result and has the same value as this result.
|
NodeSet |
getValue() |
Returns the value of this TreeFragmentResult
|
short |
getXSLTResultType() |
Returns the type of this result.
|
java.lang.Object |
javaObject() |
Returns the Result as a Java Object.
|
double |
numberValue() |
Returns the value of this XPathResult as a double
|
void |
setValue(NodeSet nodes) |
Sets the value of this TreeFragmentResult
|
void |
setValue(XPathNode node) |
Sets the value of this TreeFragmentResult
|
java.lang.String |
stringValue() |
Returns the result as a string value.
|
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResultTypepublic TreeFragmentResult()
public TreeFragmentResult(XPathNode node)
node - the XPathNode which is the "tree fragment".public TreeFragmentResult(NodeSet nodes)
nodes - the NodeSet which is the "tree fragment".public NodeSet getValue()
public void setValue(XPathNode node)
node - the XPathNode to use as the result fragmentpublic void setValue(NodeSet nodes)
nodes - the NodeSet to use as the result fragmentpublic short getXSLTResultType()
getXSLTResultType in class XSLTFunctionResultpublic boolean booleanValue()
booleanValue in class XSLTFunctionResultpublic boolean equals(XPathResult result)
equals in class XSLTFunctionResultresult - An XPath resultpublic double numberValue()
numberValue in class XSLTFunctionResultpublic java.lang.Object javaObject()
javaObject in class XSLTFunctionResultpublic java.lang.String stringValue()
stringValue in class XSLTFunctionResultpublic java.lang.String toString()
toString in class java.lang.Object