org.ozoneDB.xml.util
Class XMLContainerHelperImpl

java.lang.Object
  |
  +--org.ozoneDB.OzoneObject
        |
        +--org.ozoneDB.xml.util.XMLContainerHelperImpl
All Implemented Interfaces:
org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable, XMLContainerHelper

public final class XMLContainerHelperImpl
extends org.ozoneDB.OzoneObject
implements XMLContainerHelper

This class provides the server side part of the XMLContainer. It mainly handles storing and retrieving of parts of the underlying XML document.

Version:
$Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
Author:
SMB
See Also:
Serialized Form

Constructor Summary
XMLContainerHelperImpl()
           
 
Method Summary
 SAXChunkConsumer beginInputSequence(org.w3c.dom.Node _pNode)
           
 SAXChunkProducer beginOutputSequence(org.w3c.dom.NodeList _pnodes, int _depth)
           
 SAXChunkProducer createNextChunk(SAXChunkProducer producer)
           
 void endInputSequence()
           
 void endOutputSequence()
           
 org.infozone.tools.xml.queries.XObject executeXPath(OzoneXPathQuery _query)
           
 void executeXUpdate(OzoneXUpdateQuery _query)
           
 org.w3c.dom.Document getDocument()
           
 void onCreate()
           
 void onDelete()
           
 SAXChunkConsumer putChunk(byte[] _chunkData, SAXChunkConsumer _consumer)
           
 void setDocument(org.w3c.dom.Document _pdoc)
           
 java.lang.String xpathForNode(org.w3c.dom.Node _pnode)
          Determines the absolute XPath for the given node.
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, getObjectID, handle, hashCode, self, setContainer, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 

Constructor Detail

XMLContainerHelperImpl

public XMLContainerHelperImpl()
Method Detail

onCreate

public final void onCreate()
                    throws java.lang.Exception
Specified by:
onCreate in interface org.ozoneDB.OzoneCompatible
Overrides:
onCreate in class org.ozoneDB.OzoneObject
java.lang.Exception

onDelete

public final void onDelete()
                    throws java.lang.Exception
Specified by:
onDelete in interface org.ozoneDB.OzoneCompatible
Overrides:
onDelete in class org.ozoneDB.OzoneObject
java.lang.Exception

setDocument

public final void setDocument(org.w3c.dom.Document _pdoc)
Specified by:
setDocument in interface XMLContainerHelper

getDocument

public final org.w3c.dom.Document getDocument()
Specified by:
getDocument in interface XMLContainerHelper

beginInputSequence

public final SAXChunkConsumer beginInputSequence(org.w3c.dom.Node _pNode)
                                          throws java.lang.Exception
Specified by:
beginInputSequence in interface XMLContainerHelper
java.lang.Exception

putChunk

public final SAXChunkConsumer putChunk(byte[] _chunkData,
                                       SAXChunkConsumer _consumer)
                                throws org.xml.sax.SAXException,
                                       java.io.IOException
Specified by:
putChunk in interface XMLContainerHelper
org.xml.sax.SAXException
java.io.IOException

endInputSequence

public final void endInputSequence()
                            throws java.lang.Exception
Specified by:
endInputSequence in interface XMLContainerHelper
java.lang.Exception

beginOutputSequence

public final SAXChunkProducer beginOutputSequence(org.w3c.dom.NodeList _pnodes,
                                                  int _depth)
                                           throws java.lang.Exception
Specified by:
beginOutputSequence in interface XMLContainerHelper
java.lang.Exception

createNextChunk

public final SAXChunkProducer createNextChunk(SAXChunkProducer producer)
                                       throws org.xml.sax.SAXException
Specified by:
createNextChunk in interface XMLContainerHelper
org.xml.sax.SAXException

endOutputSequence

public final void endOutputSequence()
                             throws java.lang.Exception
Specified by:
endOutputSequence in interface XMLContainerHelper
java.lang.Exception

executeXPath

public final org.infozone.tools.xml.queries.XObject executeXPath(OzoneXPathQuery _query)
                                                          throws java.lang.Exception
Specified by:
executeXPath in interface XMLContainerHelper
java.lang.Exception

executeXUpdate

public final void executeXUpdate(OzoneXUpdateQuery _query)
                          throws java.lang.Exception
Specified by:
executeXUpdate in interface XMLContainerHelper
java.lang.Exception

xpathForNode

public final java.lang.String xpathForNode(org.w3c.dom.Node _pnode)
Determines the absolute XPath for the given node.

Specified by:
xpathForNode in interface XMLContainerHelper
Returns:
The string representing the absolute XPath for this node.


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.