Class PSVIDocumentImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Document, org.w3c.dom.events.DocumentEvent, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.ranges.DocumentRange, org.w3c.dom.traversal.DocumentTraversal

    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 699892 2008-09-28 21:08:27Z mrglavas $
    Author:
    Sandy Gao, IBM
    See Also:
    Serialized Form
    • Constructor Detail

      • PSVIDocumentImpl

        public PSVIDocumentImpl()
        Create a document.
      • PSVIDocumentImpl

        public PSVIDocumentImpl​(org.w3c.dom.DocumentType doctype)
        For DOM2 support. The createDocument factory method is in DOMImplementation.
    • Method Detail

      • getImplementation

        public org.w3c.dom.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.
        Specified by:
        getImplementation in interface org.w3c.dom.Document
        Overrides:
        getImplementation in class DocumentImpl
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName)
                                            throws org.w3c.dom.DOMException
        Create an element with PSVI information
        Specified by:
        createElementNS in interface org.w3c.dom.Document
        Overrides:
        createElementNS in class CoreDocumentImpl
        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:
        org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an invalid character.
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName,
                                                   java.lang.String localpart)
                                            throws org.w3c.dom.DOMException
        Create an element with PSVI information
        Overrides:
        createElementNS in class CoreDocumentImpl
        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:
        org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an invalid character.
      • createAttributeNS

        public org.w3c.dom.Attr createAttributeNS​(java.lang.String namespaceURI,
                                                  java.lang.String qualifiedName)
                                           throws org.w3c.dom.DOMException
        Create an attribute with PSVI information
        Specified by:
        createAttributeNS in interface org.w3c.dom.Document
        Overrides:
        createAttributeNS in class CoreDocumentImpl
        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:
        org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an invalid character.
      • createAttributeNS

        public org.w3c.dom.Attr createAttributeNS​(java.lang.String namespaceURI,
                                                  java.lang.String qualifiedName,
                                                  java.lang.String localName)
                                           throws org.w3c.dom.DOMException
        Create an attribute with PSVI information
        Overrides:
        createAttributeNS in class CoreDocumentImpl
        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:
        org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an invalid character.
      • getDomConfig

        public org.w3c.dom.DOMConfiguration getDomConfig()
        The configuration used when Document.normalizeDocument is invoked.
        Specified by:
        getDomConfig in interface org.w3c.dom.Document
        Overrides:
        getDomConfig in class CoreDocumentImpl
        Since:
        DOM Level 3