org.ozoneDB.xml.util
Class XMLContainerHelperImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.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$ $Date$
Author:
SMB
See Also:
Serialized Form

Constructor Summary
XMLContainerHelperImpl()
           
 
Method Summary
 org.ozoneDB.xml.util.SAXChunkConsumer beginInputSequence(org.w3c.dom.Node _pNode)
           
 org.ozoneDB.xml.util.SAXChunkProducer beginOutputSequence(org.w3c.dom.NodeList _pnodes, int _depth)
           
 void clearDocument()
           
 org.ozoneDB.xml.util.SAXChunkProducer createNextChunk(org.ozoneDB.xml.util.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()
           
 org.ozoneDB.xml.util.SAXChunkConsumer putChunk(byte[] _chunkData, org.ozoneDB.xml.util.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, equals, getHandle, getObjectID, handle, hashCode, onActivate, onPassivate, requireWriteLocking, self, setContainer, toString, toXML
 
Methods inherited from class java.lang.Object
clone, 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()
Specified by:
onCreate in interface org.ozoneDB.OzoneCompatible

onDelete

public final void onDelete()
Specified by:
onDelete in interface org.ozoneDB.OzoneCompatible

clearDocument

public void clearDocument()
Specified by:
clearDocument in interface XMLContainerHelper

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 org.ozoneDB.xml.util.SAXChunkConsumer beginInputSequence(org.w3c.dom.Node _pNode)
                                                               throws java.lang.Exception
Specified by:
beginInputSequence in interface XMLContainerHelper
Throws:
java.lang.Exception

putChunk

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

endInputSequence

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

beginOutputSequence

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

createNextChunk

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

endOutputSequence

public final void endOutputSequence()
                             throws java.lang.Exception
Specified by:
endOutputSequence in interface XMLContainerHelper
Throws:
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
Throws:
java.lang.Exception

executeXUpdate

public final void executeXUpdate(OzoneXUpdateQuery _query)
                          throws java.lang.Exception
Specified by:
executeXUpdate in interface XMLContainerHelper
Throws:
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
Parameters:
_pnode - The W3C DOM node whose XPath is to determine.
Returns:
The string representing the absolute XPath for this node.


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