01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: XMLContainerHelper.java,v 1.1 2001/12/18 11:03:24 per_nyfelt Exp $
08:
09: package org.ozoneDB.xml.util;
10:
11: import java.io.IOException;
12:
13: import org.w3c.dom.Node;
14: import org.w3c.dom.NodeList;
15: import org.w3c.dom.Document;
16:
17: import org.xml.sax.SAXException;
18:
19: import org.ozoneDB.OzoneRemote;
20:
21: import org.infozone.tools.xml.queries.XObject;
22:
23: /**
24: * The remote interface of the {@link XMLContainerHelperImpl}.
25: *
26: *
27: * @version $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
28: * @author <a href="http://www.softwarebuero.de">SMB</a>
29: * @see XMLContainerHelperImpl
30: */
31: public interface XMLContainerHelper extends OzoneRemote {
32:
33: public void setDocument(Document _pdoc); /* update */
34:
35: public Document getDocument();
36:
37: public SAXChunkConsumer beginInputSequence(Node _pnode)
38: throws Exception;
39:
40: public SAXChunkConsumer putChunk(byte[] _chunkData,
41: SAXChunkConsumer consumer) throws SAXException, IOException;
42:
43: public void endInputSequence() throws Exception;
44:
45: /* public SAXChunkProducer beginOutputSequence( Node _pnode, int _depth ) throws Exception;
46: */
47: public SAXChunkProducer beginOutputSequence(NodeList _pnodes,
48: int _depth) throws Exception;
49:
50: public SAXChunkProducer createNextChunk(SAXChunkProducer producer)
51: throws SAXException;
52:
53: public void endOutputSequence() throws Exception;
54:
55: public XObject executeXPath(OzoneXPathQuery _query)
56: throws Exception;
57:
58: public void executeXUpdate(OzoneXUpdateQuery _query)
59: throws Exception;
60:
61: public String xpathForNode(Node _pnode);
62:
63: }
|