FileDocCategorySizeDatePackage
PSVIDocumentImpl.javaAPI DocJava SE 5 API6857Fri Aug 26 14:55:44 BST 2005com.sun.org.apache.xerces.internal.dom

PSVIDocumentImpl

public class PSVIDocumentImpl extends DocumentImpl
Our own document implementation, which knows how to create an element with PSVI information.
author
Sandy Gao, IBM
version
$Id: PSVIDocumentImpl.java,v 1.9 2004/04/15 18:38:22 mrglavas Exp $

Fields Summary
static final long
serialVersionUID
Serialization version.
Constructors Summary
public PSVIDocumentImpl()
Create a document.


            
      
        super();
    
public PSVIDocumentImpl(DocumentType doctype)
For DOM2 support. The createDocument factory method is in DOMImplementation.

        super(doctype);
    
Methods Summary
public org.w3c.dom.NodecloneNode(boolean deep)
Deep-clone a document, including fixing ownerDoc for the cloned children. Note that this requires bypassing the WRONG_DOCUMENT_ERR protection. I've chosen to implement it by calling importNode which is DOM Level 2.

return
org.w3c.dom.Node
param
deep boolean, iff true replicate children


        PSVIDocumentImpl newdoc = new PSVIDocumentImpl();
        callUserDataHandlers(this, newdoc, UserDataHandler.NODE_CLONED);
        cloneNode(newdoc, deep);

        // experimental
        newdoc.mutationEvents = mutationEvents;

        return newdoc;

    
public org.w3c.dom.AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
Create an attribute with PSVI information

        return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName);
    
public org.w3c.dom.AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localName)
Create an attribute with PSVI information

        return new PSVIAttrNSImpl(this, namespaceURI, qualifiedName, localName);
    
public org.w3c.dom.ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
Create an element with PSVI information

        return new PSVIElementNSImpl(this, namespaceURI, qualifiedName);
    
public org.w3c.dom.ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localpart)
Create an element with PSVI information

        return new PSVIElementNSImpl(this, namespaceURI, qualifiedName, localpart);
    
public org.w3c.dom.DOMConfigurationgetDomConfig()
The configuration used when Document.normalizeDocument is invoked.

since
DOM Level 3

        super.getDomConfig();
        return fConfiguration;
    
public org.w3c.dom.DOMImplementationgetImplementation()
Retrieve information describing the abilities of this particular DOM implementation. Intended to support applications that may be using DOMs retrieved from several different sources, potentially with different underlying representations.

        // Currently implemented as a singleton, since it's hardcoded
        // information anyway.
        return PSVIDOMImplementationImpl.getDOMImplementation();
    
private voidreadObject(java.io.ObjectInputStream in)

        throw new NotSerializableException(getClass().getName());
    
private voidwriteObject(java.io.ObjectOutputStream out)

        throw new NotSerializableException(getClass().getName());