|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.ResultTreeFragment
Implements the XSLT result-tree-fragment type.
Field Summary |
Fields inherited from interface com.novell.xml.xpath.ExpressionValue |
BOOLEAN, EXTENDED, NATIVE, NODE_SET, NUMBER, STRING |
Constructor Summary | |
ResultTreeFragment(Node root)
Construct a ResultTreeFragment object using the passed node as the root of the fragment. |
Method Summary | |
void |
castFrom(Object type)
Convert from a different type of expression value to the type of the class implementing the ExpressionValue interface. |
void |
dump(PrintWriter writer)
Output a human-readable form for the value |
static Class |
getArgType()
Return the Class object for objects of this type. |
boolean |
getBooleanValue()
Return boolean value of expression value (will convert to boolean if value is not of type boolean) |
Object |
getNativeValue()
return the underlying native value (java.lang.Boolean, java.lang.Double, etc.) |
NodeSet |
getNodeSetValue()
Return node-set value of this ExpressionValue. |
double |
getNumberValue()
Return numeric value of ExpressionValue. |
Node |
getRoot()
Return the root of the result tree fragment. |
String |
getStringValue()
Return string value of this ExpressionValue. |
int |
getValueType()
Return type of expression value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultTreeFragment(Node root)
root
- The result tree fragment root (may be null).Method Detail |
public static Class getArgType()
public int getValueType()
getValueType
in interface ExpressionValue
public void castFrom(Object type) throws XPathConversionException
castFrom
in interface ExpressionValue
type
- The object to convert from.
XPathConversionException
public boolean getBooleanValue() throws XPathConversionException
getBooleanValue
in interface ExpressionValue
XPathConversionException
public double getNumberValue() throws XPathConversionException
getNumberValue
in interface ExpressionValue
XPathConversionException
public String getStringValue()
getStringValue
in interface ExpressionValue
public NodeSet getNodeSetValue() throws XPathConversionException
getNodeSetValue
in interface ExpressionValue
XPathConversionException
public Object getNativeValue()
getNativeValue
in interface ExpressionValue
public void dump(PrintWriter writer)
dump
in interface ExpressionValue
writer
- Output devicepublic Node getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |