Package javax.xml.xquery
Interface XQItem
-
- All Superinterfaces:
XQItemAccessor
- All Known Subinterfaces:
XQResultItem
- All Known Implementing Classes:
SaxonXQItem
public interface XQItem extends XQItemAccessor
This interface represents an item in the XDM.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the item and release all the resources associated with this item.booleanisClosed()Checks if the item is closed.-
Methods inherited from interface javax.xml.xquery.XQItemAccessor
getAtomicValue, getBoolean, getByte, getDouble, getFloat, getInt, getItemAsStream, getItemAsString, getItemType, getLong, getNode, getNodeUri, getObject, getShort, instanceOf, writeItem, writeItem, writeItemToResult, writeItemToSAX
-
-
-
-
Method Detail
-
close
void close() throws XQExceptionClose the item and release all the resources associated with this item. No method other than theisClosedorclosemethod may be called once the item is closed. Calling close on anXQItemobject that is already closed has no effect.- Throws:
XQException- if there is an error during closing the item
-
isClosed
boolean isClosed()
Checks if the item is closed.- Returns:
booleantrueif the item is in a closed state,falseotherwise
-
-