|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.object.XObject
jd.xml.xslt.extension.XExternalObject
A XExternalObject represents result objects returned from an extension function.
| Field Summary |
| Fields inherited from class jd.xml.xpath.object.XObject |
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES |
| Constructor Summary | |
XExternalObject(Object value)
Create a XExternalObject. |
|
| Method Summary | |
int |
canConvertTo(Class javaClass)
Test if the XObject can be converted to an object with the given class. |
boolean |
compare(Equality equality,
String s)
Return the double value of the string value of this object. |
int |
getType()
Return XObject.TYPE_OTHER |
boolean |
toBooleanValue()
Throws an exception since there is no standard way to convert an external object to a boolean. |
double |
toNumberValue()
Return the double value of the string value of this object. |
String |
toStringValue()
Return the string value of the object or an empty string if the value is null. |
Object |
toValue()
Return the objects value as a object. |
Object |
toValue(Class javaClass)
Convert the objects value to an object of the given class. |
| Methods inherited from class jd.xml.xpath.object.XObject |
compare, compare, compare, compare, compare, equals, getTypeName, getTypeName, hashCode, toNodeSet, toString, toXObject |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XExternalObject(Object value)
value - the value or null if his XExternalObject represents
a null.| Method Detail |
public int getType()
getType in class XObjectpublic Object toValue()
toValue in class XObjectpublic Object toValue(Class javaClass)
toValue in class XObjectpublic int canConvertTo(Class javaClass)
canConvertTo in class XObject
public boolean toBooleanValue()
throws XsltException
toBooleanValue in class XObjectXsltExceptionpublic double toNumberValue()
toNumberValue in class XObjectpublic String toStringValue()
toStringValue in class XObject
public boolean compare(Equality equality,
String s)
compare in class XObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||