Class Closable

java.lang.Object
com.saxonica.xqj.Closable
Direct Known Subclasses:
SaxonXQDataFactory, SaxonXQDynamicContext, SaxonXQForwardSequence, SaxonXQItem, SaxonXQSequence

public abstract class Closable extends Object
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 Details Link icon

    • Closable Link icon

      public Closable()
  • Method Details Link icon

    • setClosableContainer Link icon

      public final void setClosableContainer(Closable container)
      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 Link icon

      public final void close()
      Close this object
    • isClosed Link icon

      public final boolean isClosed()
      Ask whether this object has been closed.
      Returns:
      true if either the object itself or its container has been closed