org.apache.xerces.dom

Class PSVIDocumentImpl

public class PSVIDocumentImpl extends DocumentImpl

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

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version: $Id: PSVIDocumentImpl.java,v 1.12 2005/05/02 22:03:58 mrglavas Exp $

Author: Sandy Gao, IBM

Constructor Summary
PSVIDocumentImpl()
Create a document.
PSVIDocumentImpl(DocumentType doctype)
For DOM2 support.
Method Summary
NodecloneNode(boolean deep)
Deep-clone a document, including fixing ownerDoc for the cloned children.
AttrcreateAttributeNS(String namespaceURI, String qualifiedName)
Create an attribute with PSVI information
AttrcreateAttributeNS(String namespaceURI, String qualifiedName, String localName)
Create an attribute with PSVI information
ElementcreateElementNS(String namespaceURI, String qualifiedName)
Create an element with PSVI information
ElementcreateElementNS(String namespaceURI, String qualifiedName, String localpart)
Create an element with PSVI information
DOMConfigurationgetDomConfig()
The configuration used when Document.normalizeDocument is invoked.
DOMImplementationgetImplementation()
Retrieve information describing the abilities of this particular DOM implementation.

Constructor Detail

PSVIDocumentImpl

public PSVIDocumentImpl()
Create a document.

PSVIDocumentImpl

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

Method Detail

cloneNode

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

createAttributeNS

public Attr createAttributeNS(String namespaceURI, String qualifiedName)
Create an attribute with PSVI information

createAttributeNS

public Attr createAttributeNS(String namespaceURI, String qualifiedName, String localName)
Create an attribute with PSVI information

createElementNS

public Element createElementNS(String namespaceURI, String qualifiedName)
Create an element with PSVI information

createElementNS

public Element createElementNS(String namespaceURI, String qualifiedName, String localpart)
Create an element with PSVI information

getDomConfig

public DOMConfiguration getDomConfig()
The configuration used when Document.normalizeDocument is invoked.

Since: DOM Level 3

getImplementation

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.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.