Class Closable

  extended by net.sf.saxon.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 Summary
Method Summary
 void close()
          Close this object
 boolean isClosed()
          Ask whether this object has been closed.
 void setClosableContainer(Closable container)
          Set the container of this closable object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Closable()
Method Detail


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

container - the container of this closable object


public final void close()
Close this object


public final boolean isClosed()
Ask whether this object has been closed.

true if either the object itself or its container has been closed

Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.