FileDocCategorySizeDatePackage
PSVIDocumentImpl.javaAPI DocJava SE 6 API4680Tue Jun 10 00:22:38 BST 2008com.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.
xerces.internal
author
Sandy Gao, IBM
version
$Id: PSVIDocumentImpl.java,v 1.2.6.1 2005/08/31 12:36:26 sunithareddy 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());