Package gnu.kawa.xml

Class KDocument

  • All Implemented Interfaces:
    Consumable, java.util.Enumeration<java.lang.Object>, java.util.Iterator<java.lang.Object>, java.util.ListIterator<java.lang.Object>, org.w3c.dom.Document, org.w3c.dom.Node

    public class KDocument
    extends KNode
    implements org.w3c.dom.Document
    • Constructor Detail

      • KDocument

        public KDocument​(NodeTree seq,
                         int ipos)
    • Method Detail

      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Overrides:
        getNodeName in class KNode
      • getImplementation

        public org.w3c.dom.DOMImplementation getImplementation()
        Specified by:
        getImplementation in interface org.w3c.dom.Document
      • getDoctype

        public org.w3c.dom.DocumentType getDoctype()
        Specified by:
        getDoctype in interface org.w3c.dom.Document
      • getParentNode

        public org.w3c.dom.Node getParentNode()
        Specified by:
        getParentNode in interface org.w3c.dom.Node
        Overrides:
        getParentNode in class KNode
      • getDocumentElement

        public KElement getDocumentElement()
        Specified by:
        getDocumentElement in interface org.w3c.dom.Document
      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Specified by:
        getNodeType in class KNode
      • getNodeValue

        public java.lang.String getNodeValue()
        Specified by:
        getNodeValue in interface org.w3c.dom.Node
        Overrides:
        getNodeValue in class KNode
      • getTextContent

        public java.lang.String getTextContent()
        Specified by:
        getTextContent in interface org.w3c.dom.Node
        Overrides:
        getTextContent in class KNode
      • getTextContent

        protected void getTextContent​(java.lang.StringBuffer sbuf)
        Overrides:
        getTextContent in class KNode
      • createElement

        public org.w3c.dom.Element createElement​(java.lang.String tagName)
        Not implemented.
        Specified by:
        createElement in interface org.w3c.dom.Document
      • createDocumentFragment

        public org.w3c.dom.DocumentFragment createDocumentFragment()
        Not implemented.
        Specified by:
        createDocumentFragment in interface org.w3c.dom.Document
      • createTextNode

        public org.w3c.dom.Text createTextNode​(java.lang.String data)
        Not implemented.
        Specified by:
        createTextNode in interface org.w3c.dom.Document
      • createComment

        public org.w3c.dom.Comment createComment​(java.lang.String data)
        Not implemented.
        Specified by:
        createComment in interface org.w3c.dom.Document
      • createCDATASection

        public org.w3c.dom.CDATASection createCDATASection​(java.lang.String data)
        Not implemented.
        Specified by:
        createCDATASection in interface org.w3c.dom.Document
      • createProcessingInstruction

        public org.w3c.dom.ProcessingInstruction createProcessingInstruction​(java.lang.String target,
                                                                             java.lang.String data)
        Not implemented.
        Specified by:
        createProcessingInstruction in interface org.w3c.dom.Document
      • createAttribute

        public org.w3c.dom.Attr createAttribute​(java.lang.String name)
        Not implemented.
        Specified by:
        createAttribute in interface org.w3c.dom.Document
      • createEntityReference

        public org.w3c.dom.EntityReference createEntityReference​(java.lang.String name)
        Not implemented.
        Specified by:
        createEntityReference in interface org.w3c.dom.Document
      • importNode

        public org.w3c.dom.Node importNode​(org.w3c.dom.Node importedNode,
                                           boolean deep)
        Not implemented.
        Specified by:
        importNode in interface org.w3c.dom.Document
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName)
        Not implemented.
        Specified by:
        createElementNS in interface org.w3c.dom.Document
      • createAttributeNS

        public org.w3c.dom.Attr createAttributeNS​(java.lang.String namespaceURI,
                                                  java.lang.String qualifiedName)
        Not implemented.
        Specified by:
        createAttributeNS in interface org.w3c.dom.Document
      • getElementsByTagNameNS

        public org.w3c.dom.NodeList getElementsByTagNameNS​(java.lang.String namespaceURI,
                                                           java.lang.String localName)
        Not implemented yet.
        Specified by:
        getElementsByTagNameNS in interface org.w3c.dom.Document
      • getElementById

        public org.w3c.dom.Element getElementById​(java.lang.String elementId)
        Specified by:
        getElementById in interface org.w3c.dom.Document
      • hasAttributes

        public boolean hasAttributes()
        Specified by:
        hasAttributes in interface org.w3c.dom.Node
        Overrides:
        hasAttributes in class KNode
      • getInputEncoding

        public java.lang.String getInputEncoding()
        Specified by:
        getInputEncoding in interface org.w3c.dom.Document
      • getXmlEncoding

        public java.lang.String getXmlEncoding()
        Specified by:
        getXmlEncoding in interface org.w3c.dom.Document
      • getXmlStandalone

        public boolean getXmlStandalone()
        Specified by:
        getXmlStandalone in interface org.w3c.dom.Document
      • setXmlStandalone

        public void setXmlStandalone​(boolean xmlStandalone)
        Specified by:
        setXmlStandalone in interface org.w3c.dom.Document
      • getXmlVersion

        public java.lang.String getXmlVersion()
        Specified by:
        getXmlVersion in interface org.w3c.dom.Document
      • setXmlVersion

        public void setXmlVersion​(java.lang.String xmlVersion)
        Specified by:
        setXmlVersion in interface org.w3c.dom.Document
      • getStrictErrorChecking

        public boolean getStrictErrorChecking()
        Specified by:
        getStrictErrorChecking in interface org.w3c.dom.Document
      • setStrictErrorChecking

        public void setStrictErrorChecking​(boolean strictErrorChecking)
        Specified by:
        setStrictErrorChecking in interface org.w3c.dom.Document
      • getDocumentURI

        public java.lang.String getDocumentURI()
        Specified by:
        getDocumentURI in interface org.w3c.dom.Document
      • setDocumentURI

        public void setDocumentURI​(java.lang.String documentURI)
        Specified by:
        setDocumentURI in interface org.w3c.dom.Document
      • renameNode

        public org.w3c.dom.Node renameNode​(org.w3c.dom.Node n,
                                           java.lang.String namespaceURI,
                                           java.lang.String qualifiedname)
                                    throws org.w3c.dom.DOMException
        Specified by:
        renameNode in interface org.w3c.dom.Document
        Throws:
        org.w3c.dom.DOMException
      • adoptNode

        public org.w3c.dom.Node adoptNode​(org.w3c.dom.Node source)
                                   throws org.w3c.dom.DOMException
        Specified by:
        adoptNode in interface org.w3c.dom.Document
        Throws:
        org.w3c.dom.DOMException
      • normalizeDocument

        public void normalizeDocument()
        Specified by:
        normalizeDocument in interface org.w3c.dom.Document
      • getDomConfig

        public org.w3c.dom.DOMConfiguration getDomConfig()
        Specified by:
        getDomConfig in interface org.w3c.dom.Document