public class TreeFragmentResult extends XSLTFunctionResult
TREE_FRAGMENT
BOOLEAN, NODE_SET, NUMBER, STRING, USER_DEFINED
Constructor and 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 and 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() |
getResultType
public 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 XSLTFunctionResult
public boolean booleanValue()
booleanValue
in class XSLTFunctionResult
public boolean equals(XPathResult result)
equals
in class XSLTFunctionResult
result
- An XPath resultpublic double numberValue()
numberValue
in class XSLTFunctionResult
public java.lang.Object javaObject()
javaObject
in class XSLTFunctionResult
public java.lang.String stringValue()
stringValue
in class XSLTFunctionResult
public java.lang.String toString()
toString
in class java.lang.Object