|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface allowing discovery of and access to expression values. Implementing classes must provide an argumentless constructor for use in casting expression types. For casting, the appropriate type is constructed, then the castFrom() member defined by this interface is called.
Field Summary | |
static int |
BOOLEAN
Represents a boolean value |
static int |
EXTENDED
Represents a non-XPath defined type |
static int |
NATIVE
Represents a native (extension) type |
static int |
NODE_SET
Represents a node-set value |
static int |
NUMBER
Represents a number value |
static int |
STRING
Represents a string value |
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 |
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. |
String |
getStringValue()
Return string value of this ExpressionValue. |
int |
getValueType()
Return type of expression value |
Field Detail |
public static final int BOOLEAN
public static final int NUMBER
public static final int STRING
public static final int NODE_SET
public static final int EXTENDED
public static final int NATIVE
Method Detail |
public int getValueType()
public void castFrom(Object type) throws XPathConversionException
type
- The object to convert from.
XPathConversionException
public boolean getBooleanValue() throws XPathConversionException
XPathConversionException
public double getNumberValue() throws XPathConversionException
XPathConversionException
public String getStringValue()
public NodeSet getNodeSetValue() throws XPathConversionException
XPathConversionException
public Object getNativeValue()
public void dump(PrintWriter writer)
writer
- Output device
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |