javax.xml.xquery

Interface XQItem

public interface XQItem extends XQItemAccessor

This interface represents an item in the XDM.
Method Summary
voidclose()
Close the item and release all the resources associated with this item.
booleanisClosed()
Checks if the item is closed.

Method Detail

close

public void close()
Close the item and release all the resources associated with this item. No method other than the isClosed or close method may be called once the item is closed. Calling close on an XQItem object that is already closed has no effect.

Throws: XQException if there is an error during closing the item

isClosed

public boolean isClosed()
Checks if the item is closed.

Returns: boolean true if the item is in a closed state, false otherwise