org.exolab.adaptx.xslt
Class TreeFragmentResult
- java.io.Serializable
public class TreeFragmentResult
Represents a TreeFragment result
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:49 $
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.
|
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
|
String | stringValue() - Returns the result as a string value.
|
String | toString()
|
TreeFragmentResult
public TreeFragmentResult()
Creates a new TreeFragmentResult that represents
a "empty" fragment.
TreeFragmentResult
public TreeFragmentResult(NodeSet nodes)
Creates a new TreeFragmentResult with the given NodeSet.
nodes
- the NodeSet which is the "tree fragment".
TreeFragmentResult
public TreeFragmentResult(XPathNode node)
Creates a new TreeFragmentResult with the given XPathNode.
node
- the XPathNode which is the "tree fragment".
booleanValue
public boolean booleanValue()
Returns the value of this ExprResult as a boolean
- booleanValue in interface XSLTFunctionResult
- the value of this ExprResult as a boolean
equals
public 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.
- equals in interface XSLTFunctionResult
- True if same type and same value as this result
getValue
public NodeSet getValue()
Returns the value of this TreeFragmentResult
- the value of this TreeFragmentResult
javaObject
public Object javaObject()
Returns the Result as a Java Object. For tree-fragment
this is simply an XPathNode.
- javaObject in interface XSLTFunctionResult
- the Result as a Java Object
numberValue
public double numberValue()
Returns the value of this XPathResult as a double
- numberValue in interface XSLTFunctionResult
- the value of this XPathResult as a double
setValue
public void setValue(NodeSet nodes)
Sets the value of this TreeFragmentResult
nodes
- the NodeSet to use as the result fragment
setValue
public void setValue(XPathNode node)
Sets the value of this TreeFragmentResult
node
- the XPathNode to use as the result fragment
stringValue
public String stringValue()
Returns the result as a string value. Returns "false" or
"true" for a boolean result, the value of a string result,
the string value of a number result, or the string value of
a node-set.
- stringValue in interface XSLTFunctionResult
- The result as a string value
toString
public String toString()