org.exolab.adaptx.xslt
Class XSLTFunctionResult
- java.io.Serializable
public abstract class XSLTFunctionResult
Abstract class representing the result of an XSLT extension function.
Version:
- Keith Visco
- Serialized Form
boolean | booleanValue() - Returns the result as a boolean value.
|
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.
|
int | getResultType() - Returns the type of this result.
|
short | getXSLTResultType() - Returns the type of this result.
|
Object | javaObject() - Returns the result as a Java object.
|
double | numberValue() - Returns the result as a number value.
|
String | stringValue() - Returns the result as a string value.
|
TREE_FRAGMENT
public static final short TREE_FRAGMENT
The tree-fragment result
- 0
booleanValue
public boolean booleanValue()
Returns the result as a boolean value. Returns the value of
a boolean result, true for a non-empty string result, true
for a non-zero number result, and true from a non-empty node-set.
- booleanValue in interface XPathResult
- The result as a boolean value
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 XPathResult
result
- An XPath result
- True if same type and same value as this result
getResultType
public int getResultType()
Returns the type of this result. This should
always be XPathResult.USER_DEFINED.
- getResultType in interface XPathResult
- The type of this result
getXSLTResultType()
getXSLTResultType
public short getXSLTResultType()
Returns the type of this result.
- The type of this result
javaObject
public Object javaObject()
Returns the result as a Java object. Returns an object of
type java.lang.Boolean
for a boolean result, an object of
type java.lang.String
for a string result, an object of type
java.lang.Double
for a number result, or an object of type
NodeSet
for a node-set.
- javaObject in interface XPathResult
- The result as a Java object
numberValue
public double numberValue()
Returns the result as a number value. Returns 0 or 1 for a
boolean result, the parsed value for a string result, the
value of a number result, or the parsed value of a node-set.
- numberValue in interface XPathResult
- The result as a number value
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 XPathResult
- The result as a string value