01: /**
02: * org/ozoneDB/xml/DTDDocument.java
03: *
04: * The contents of this file are subject to the OpenXML Public
05: * License Version 1.0; you may not use this file except in compliance
06: * with the License. You may obtain a copy of the License at
07: * http://www.openxml.org/license.html
08: *
09: * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
10: * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
11: * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
12: * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
13: * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
14: * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
15: *
16: * The Initial Developer of this code under the License is Assaf Arkin.
17: * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
18: * All Rights Reserved.
19: */
20:
21: /**
22: * Changes for Persistent DOM running with ozone are
23: * Copyright 1999 by SMB GmbH. All rights reserved.
24: */package org.ozoneDB.xml;
25:
26: import java.util.*;
27: import org.w3c.dom.*;
28: import org.ozoneDB.xml.dom.*;
29:
30: /**
31: * @version $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
32: * @author <a href="mailto:arkin@trendline.co.il">Assaf Arkin</a>
33: */
34: public final class DTDDocument extends DocumentTypeImpl implements
35: Document, DocumentType {
36:
37: public DTDDocument() {
38: super (null);
39: }
40:
41: public DTDDocument(Document owner, String rootElement,
42: boolean standalone, String systemId, String publicId) {
43: super (owner, rootElement, standalone, systemId, publicId);
44: }
45:
46: public Object clone() {
47: DTDDocument clone;
48: // clone = (AttrProxy) database().createObject (AttrImpl.class.getName());
49: // clone.init (_ownerDocument, getNodeName(), getNodeValue());
50: // cloneInto ((NodeProxy)clone, true);
51: clone = new DTDDocument();
52: cloneInto(clone, true);
53: return clone;
54: }
55:
56: public Node cloneNode(boolean deep) {
57: DTDDocument clone;
58: clone = new DTDDocument();
59: cloneInto(clone, deep);
60: return clone;
61: }
62:
63: }
|