KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > dom4j > OzoneDocumentFactory


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: OzoneDocumentFactory.java,v 1.5 2003/11/02 18:10:03 per_nyfelt Exp $
8
package org.ozoneDB.xml.dom4j;
9
10 import org.dom4j.Document;
11 import org.dom4j.Element;
12 import org.dom4j.NodeFactory;
13 import org.dom4j.XPathFactory;
14 import org.ozoneDB.OzoneRemote;
15
16 import java.util.List JavaDoc;
17 import java.util.Map JavaDoc;
18
19 /**
20  *
21  * <br> Date: Jul 27, 2002
22  * @author Per Nyfelt
23  */

24 public interface OzoneDocumentFactory extends NodeFactory, XPathFactory, OzoneRemote {
25
26     public static final String JavaDoc OBJECT_NAME = "DocumentFactory";
27
28     /**
29      *
30      * @param name is the name for the document which is used to retrieve the
31      * document at a later time.
32      * @return
33      * @throws Exception
34      */

35     Document createDocument(String JavaDoc name) throws Exception JavaDoc;
36
37     /**
38      *
39      * @param rootElement
40      * @param name is the name for the document which is used to retrieve the
41      * document at a later time.
42      * @return
43      * @throws Exception
44      */

45     Document createDocument(Element rootElement, String JavaDoc name) throws Exception JavaDoc;
46
47     /** Returns a list of all the QNameImpl instances currently used by this document factory
48      * @deprecated or was it just forgotten when the interfaces war created?
49      */

50     List JavaDoc getQNames();
51
52     /** @return the Map of namespace URIs that will be used by by XPath expressions
53      * to resolve namespace prefixes into namespace URIs. The map is keyed by
54      * namespace prefix and the value is the namespace URI. This value could well be
55      * null to indicate no namespace URIs are being mapped.
56      */

57     public Map JavaDoc getXPathNamespaceURIs();
58
59 }
60
Popular Tags