KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > DTDDocument


1 /**
2  * org/ozoneDB/xml/DTDDocument.java
3  *
4  * The contents of this file are subject to the OpenXML Public
5  * License Version 1.0; you may not use this file except in compliance
6  * with the License. You may obtain a copy of the License at
7  * http://www.openxml.org/license.html
8  *
9  * 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  */

25
26 package org.ozoneDB.xml;
27
28 import java.util.*;
29 import org.w3c.dom.*;
30 import org.ozoneDB.xml.dom.*;
31
32
33 /**
34  * @version $Revision: 1.1 $ $Date: 2003/11/02 17:26:13 $
35  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
36  */

37 public final class DTDDocument extends DocumentTypeImpl implements Document, DocumentType {
38     
39     
40     public DTDDocument() {
41         super( null );
42     }
43     
44     
45     public DTDDocument( Document owner, String JavaDoc rootElement, boolean standalone, String JavaDoc systemId, String JavaDoc publicId ) {
46         super( owner, rootElement, standalone, systemId, publicId );
47     }
48     
49     
50     public Object JavaDoc clone() {
51         DTDDocument clone;
52         // clone = (AttrProxy) database().createObject (AttrImpl.class.getName());
53
// clone.init (_ownerDocument, getNodeName(), getNodeValue());
54
// cloneInto ((NodeProxy)clone, true);
55
clone = new DTDDocument();
56         cloneInto( clone, true );
57         return clone;
58     }
59     
60     
61     public Node cloneNode( boolean deep ) {
62         DTDDocument clone;
63         clone = new DTDDocument();
64         cloneInto( clone, deep );
65         return clone;
66     }
67     
68 }
69
Popular Tags