Package com.saxonica.xqj
Class Closable
java.lang.Object
com.saxonica.xqj.Closable
- Direct Known Subclasses:
SaxonXQDataFactory,SaxonXQDynamicContext,SaxonXQForwardSequence,SaxonXQItem,SaxonXQSequence
This class represents the common ability of many XQJ classes to be closed. Note that closing an object
serves no useful purpose in the Saxon implementation; this complex machinery is provided merely to satisfy
the XQJ interface, which is designed to accommodate a client-server implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Close this objectfinal booleanisClosed()Ask whether this object has been closed.final voidsetClosableContainer(Closable container) Set the container of this closable object.
-
Constructor Details
-
Closable
public Closable()
-
-
Method Details
-
setClosableContainer
Set the container of this closable object. Closing the container causes this object to be treated as closed itself- Parameters:
container- the container of this closable object
-
close
public final void close()Close this object -
isClosed
public final boolean isClosed()Ask whether this object has been closed.- Returns:
- true if either the object itself or its container has been closed
-