public class

PSVIDocumentImpl

extends DocumentImpl
java.lang.Object
   ↳ org.apache.xerces.dom.NodeImpl
     ↳ org.apache.xerces.dom.ChildNode
       ↳ org.apache.xerces.dom.ParentNode
         ↳ org.apache.xerces.dom.CoreDocumentImpl
           ↳ org.apache.xerces.dom.DocumentImpl
             ↳ org.apache.xerces.dom.PSVIDocumentImpl

Class Overview

Our own document implementation, which knows how to create an element with PSVI information.@xerces.internal

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.dom.NodeImpl
From interface org.w3c.dom.Node
[Expand]
Inherited Fields
From class org.apache.xerces.dom.DocumentImpl
From class org.apache.xerces.dom.CoreDocumentImpl
From class org.apache.xerces.dom.ParentNode
From class org.apache.xerces.dom.ChildNode
From class org.apache.xerces.dom.NodeImpl
Public Constructors
PSVIDocumentImpl()
Create a document.
PSVIDocumentImpl(DocumentType doctype)
For DOM2 support.
Public Methods
Node cloneNode(boolean deep)
Deep-clone a document, including fixing ownerDoc for the cloned children.
Attr createAttributeNS(String namespaceURI, String qualifiedName, String localName)
Create an attribute with PSVI information
Attr createAttributeNS(String namespaceURI, String qualifiedName)
Create an attribute with PSVI information
Element createElementNS(String namespaceURI, String qualifiedName)
Create an element with PSVI information
Element createElementNS(String namespaceURI, String qualifiedName, String localpart)
Create an element with PSVI information
DOMConfiguration getDomConfig()
The configuration used when Document.normalizeDocument is invoked.
DOMImplementation getImplementation()
Retrieve information describing the abilities of this particular DOM implementation.
[Expand]
Inherited Methods
From class org.apache.xerces.dom.DocumentImpl
From class org.apache.xerces.dom.CoreDocumentImpl
From class org.apache.xerces.dom.ParentNode
From class org.apache.xerces.dom.ChildNode
From class org.apache.xerces.dom.NodeImpl
From class java.lang.Object
From interface org.w3c.dom.Document
From interface org.w3c.dom.Node
From interface org.w3c.dom.NodeList
From interface org.w3c.dom.events.DocumentEvent
From interface org.w3c.dom.events.EventTarget
From interface org.w3c.dom.ranges.DocumentRange
From interface org.w3c.dom.traversal.DocumentTraversal

Public Constructors

public PSVIDocumentImpl ()

Create a document.

public PSVIDocumentImpl (DocumentType doctype)

For DOM2 support. The createDocument factory method is in DOMImplementation.

Public Methods

public Node cloneNode (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.

Parameters
deep boolean, iff true replicate children
Returns
  • org.w3c.dom.Node

public Attr createAttributeNS (String namespaceURI, String qualifiedName, String localName)

Create an attribute with PSVI information

Parameters
namespaceURI The namespace URI of the attribute to create. When it is null or an empty string, this method behaves like createAttribute.
qualifiedName The qualified name of the attribute to instantiate.
localName The local name of the attribute to instantiate.
Returns
  • Attr A new Attr object.
Throws
DOMException

public Attr createAttributeNS (String namespaceURI, String qualifiedName)

Create an attribute with PSVI information

Parameters
namespaceURI The namespace URI of the attribute to create. When it is null or an empty string, this method behaves like createAttribute.
qualifiedName The qualified name of the attribute to instantiate.
Returns
  • Attr A new Attr object.
Throws
DOMException

public Element createElementNS (String namespaceURI, String qualifiedName)

Create an element with PSVI information

Parameters
namespaceURI The namespace URI of the element to create.
qualifiedName The qualified name of the element type to instantiate.
Returns
  • Element A new Element object with the following attributes:
Throws
DOMException

public Element createElementNS (String namespaceURI, String qualifiedName, String localpart)

Create an element with PSVI information

Parameters
namespaceURI The namespace URI of the element to create.
qualifiedName The qualified name of the element type to instantiate.
localpart The local name of the attribute to instantiate.
Returns
  • Element A new Element object with the following attributes:
Throws
DOMException

public DOMConfiguration getDomConfig ()

The configuration used when Document.normalizeDocument is invoked.

public DOMImplementation getImplementation ()

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.