1 20 21 25 26 package org.ozoneDB.xml; 27 28 import org.w3c.dom.*; 29 import org.ozoneDB.xml.dom.*; 30 31 32 65 public class XMLDocument extends DocumentImpl implements XMLDocumentProxy { 66 67 68 71 public XMLDocument() { 72 super(); 73 } 75 76 77 public Object clone() { 78 XMLDocumentProxy clone = null; 79 try { 80 clone = (XMLDocumentProxy)database().createObject( XMLDocument.class.getName() ); 81 cloneInto( (NodeProxy)clone, true ); 82 } catch (Exception except) { 83 throw new DOMExceptionImpl( DOMExceptionImpl.PDOM_ERR, except.getMessage() ); 84 } 85 return clone; 86 } 87 88 89 public Node cloneNode( boolean deep ) { 90 XMLDocumentProxy clone = null; 91 try { 92 clone = (XMLDocumentProxy)database().createObject( XMLDocument.class.getName() ); 93 cloneInto( (NodeProxy)clone, deep ); 94 } catch (Exception except) { 95 throw new DOMExceptionImpl( DOMExceptionImpl.PDOM_ERR, except.getMessage() ); 96 } 97 return clone; 98 } 99 } 100 | Popular Tags |