|
Qizx/Open v0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XQuery abstract Item value.
Specialized methods allow to retrieve or convert the actual value according to the type (return by getType()). A type exception is raised if the conversion is not possible.
Field Summary | |
static int |
INCOMPARABLE
|
Method Summary | |
boolean |
asBoolean()
Gets the item as a boolean value (optimisable). |
java.math.BigDecimal |
asDecimal()
Gets the item as a decimal value. |
double |
asDouble()
Gets the item as a double value (optimisable). |
float |
asFloat()
Gets the item as a float value (optimisable). |
long |
asInteger()
Gets the item as a integer value (optimisable). |
Node |
asNode()
Gets the item as a Node value (optimisable). |
java.lang.String |
asString()
Gets the item as a String value (optimisable). |
int |
compareTo(Item that,
java.text.Collator collator,
int implicitTimeZone)
Compares two items. |
boolean |
deepEqual(Item item,
java.text.Collator collator)
Deep equality of two items. |
ItemType |
getType()
Returns the type description. |
boolean |
isNode()
Tests whether the item is a Node. |
Field Detail |
public static final int INCOMPARABLE
Method Detail |
public ItemType getType()
public boolean asBoolean() throws TypeException
TypeException
public float asFloat() throws TypeException
TypeException
public double asDouble() throws TypeException
TypeException
public long asInteger() throws TypeException
TypeException
public java.math.BigDecimal asDecimal() throws TypeException
TypeException
public java.lang.String asString() throws TypeException
TypeException
public Node asNode() throws TypeException
TypeException
public boolean isNode()
public int compareTo(Item that, java.text.Collator collator, int implicitTimeZone) throws TypeException
TypeException
public boolean deepEqual(Item item, java.text.Collator collator)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |