1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import java.io.IOException ; 61 import java.io.NotSerializableException ; 62 import java.io.ObjectInputStream ; 63 import java.io.ObjectOutputStream ; 64 65 import org.w3c.dom.DOMConfiguration ; 68 import org.w3c.dom.UserDataHandler ; 69 import org.w3c.dom.*; 70 71 79 public class PSVIDocumentImpl extends DocumentImpl { 80 81 82 static final long serialVersionUID = -8822220250676434522L; 83 84 87 public PSVIDocumentImpl() { 88 super(); 89 } 90 91 95 public PSVIDocumentImpl(DocumentType doctype) { 96 super(doctype); 97 } 98 99 108 public Node cloneNode(boolean deep) { 109 110 PSVIDocumentImpl newdoc = new PSVIDocumentImpl(); 111 callUserDataHandlers(this, newdoc, UserDataHandler.NODE_CLONED); 112 cloneNode(newdoc, deep); 113 114 newdoc.mutationEvents = mutationEvents; 116 117 return newdoc; 118 119 } 121 127 public DOMImplementation getImplementation() { 128 return PSVIDOMImplementationImpl.getDOMImplementation(); 131 } 132 133 136 public Element createElementNS(String namespaceURI, String qualifiedName) 137 throws DOMException { 138 return new PSVIElementNSImpl(this, namespaceURI, qualifiedName); 139 } 140 141 144 public Element createElementNS(String namespaceURI, String qualifiedName, 145 String localpart) throws DOMException { 146 return new PSVIElementNSImpl(this, namespaceURI, qualifiedName, localpart); 147 } 148 149 152 public Attr createAttributeNS(String namespaceURI, String qualifiedName) 153 throws DOMException { 154 return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName); 155 } 156 157 160 public Attr createAttributeNS(String namespaceURI, String qualifiedName, 161 String localName) throws DOMException { 162 return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName, localName); 163 } 164 165 171 public DOMConfiguration getDomConfig(){ 172 super.getDomConfig(); 173 return fConfiguration; 174 } 175 176 179 private void writeObject(ObjectOutputStream out) 180 throws IOException { 181 throw new NotSerializableException (getClass().getName()); 182 } 183 184 private void readObject(ObjectInputStream in) 185 throws IOException , ClassNotFoundException { 186 throw new NotSerializableException (getClass().getName()); 187 } 188 189 } | Popular Tags |