1 16 17 package org.apache.xerces.dom; 18 19 import java.io.IOException ; 20 import java.io.NotSerializableException ; 21 import java.io.ObjectInputStream ; 22 import java.io.ObjectOutputStream ; 23 import org.w3c.dom.DOMConfiguration ; 24 import org.w3c.dom.UserDataHandler ; 25 import org.w3c.dom.*; 26 27 37 public class PSVIDocumentImpl extends DocumentImpl { 38 39 40 static final long serialVersionUID = -8822220250676434522L; 41 42 45 public PSVIDocumentImpl() { 46 super(); 47 } 48 49 53 public PSVIDocumentImpl(DocumentType doctype) { 54 super(doctype); 55 } 56 57 66 public Node cloneNode(boolean deep) { 67 68 PSVIDocumentImpl newdoc = new PSVIDocumentImpl(); 69 callUserDataHandlers(this, newdoc, UserDataHandler.NODE_CLONED); 70 cloneNode(newdoc, deep); 71 72 newdoc.mutationEvents = mutationEvents; 74 75 return newdoc; 76 77 } 79 85 public DOMImplementation getImplementation() { 86 return PSVIDOMImplementationImpl.getDOMImplementation(); 89 } 90 91 94 public Element createElementNS(String namespaceURI, String qualifiedName) 95 throws DOMException { 96 return new PSVIElementNSImpl(this, namespaceURI, qualifiedName); 97 } 98 99 102 public Element createElementNS(String namespaceURI, String qualifiedName, 103 String localpart) throws DOMException { 104 return new PSVIElementNSImpl(this, namespaceURI, qualifiedName, localpart); 105 } 106 107 110 public Attr createAttributeNS(String namespaceURI, String qualifiedName) 111 throws DOMException { 112 return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName); 113 } 114 115 118 public Attr createAttributeNS(String namespaceURI, String qualifiedName, 119 String localName) throws DOMException { 120 return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName, localName); 121 } 122 123 129 public DOMConfiguration getDomConfig(){ 130 super.getDomConfig(); 131 return fConfiguration; 132 } 133 134 137 private void writeObject(ObjectOutputStream out) 138 throws IOException { 139 throw new NotSerializableException (getClass().getName()); 140 } 141 142 private void readObject(ObjectInputStream in) 143 throws IOException , ClassNotFoundException { 144 throw new NotSerializableException (getClass().getName()); 145 } 146 147 } | Popular Tags |