|
Qizx/open 4.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Item
An Item of a Sequence returned by the evaluation of an XQuery Expression.
| Method Summary | |
|---|---|
void |
export(XMLPushStream writer)
Streaming export of a Node in "push" mode. |
XMLPullStream |
exportNode()
Streaming export of a Node, in "pull" mode. |
boolean |
getBoolean()
Gets the item's boolean value. |
BigDecimal |
getDecimal()
Gets the item's decimal value. |
double |
getDouble()
Gets the item's double value. |
float |
getFloat()
Gets the item's float value. |
long |
getInteger()
Gets the item's integer value. |
Node |
getNode()
Gets the item's Node value. |
Object |
getObject()
Converts the item value to a Java object, according to its actual type. |
QName |
getQName()
Gets the item's QName value. |
String |
getString()
Gets the item's String value. |
ItemType |
getType()
Returns the XQuery type of the item. |
boolean |
isNode()
Tests whether the item is a Node. |
| Method Detail |
|---|
ItemType getType()
throws EvaluationException
EvaluationException - if access to the item is not possible
boolean getBoolean()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not
boolean and not convertible
float getFloat()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not
float and not convertible
double getDouble()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not
double and not convertible
long getInteger()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not
integer and not convertible
BigDecimal getDecimal()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not
decimal and not convertible
String getString()
throws EvaluationException
EvaluationException - if the item cannot be accessed
QName getQName()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not a QNameboolean isNode()
Node getNode()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not a Node
XMLPullStream exportNode()
throws EvaluationException
EvaluationException - if the item cannot be accessed or is not a node
void export(XMLPushStream writer)
throws QizxException
writer - a push stream output
QizxException - if not a node, or not accessible, or
a DataModelException is thrown by the writer.
Object getObject()
throws QizxException
The precise mapping of XQuery types to Java types is described in the documentation of Java Binding.
QizxException - if the item cannot be accessed or if the conversion fails
|
© 2010 Axyana Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||