gnu.xml.libxmlj.dom

Class GnomeDocument

Implemented Interfaces:
Comparable, Document, DocumentTraversal, DOMConfiguration, Node, XPathEvaluator

public class GnomeDocument
extends gnu.xml.libxmlj.dom.GnomeNode
implements Document, DOMConfiguration, XPathEvaluator, DocumentTraversal

A DOM document node implemented in libxml2.

Fields inherited from interface org.w3c.dom.Node

ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

Method Summary

Node
adoptNode(Node source)
boolean
canSetParameter(String name, Object value)
Attr
createAttribute(String name)
Attr
createAttributeNS(String namespaceURI, String qualifiedName)
CDATASection
createCDATASection(String data)
Comment
createComment(String data)
DocumentFragment
createDocumentFragment()
DocumentType
createDocumentType(String name, String publicId, String systemId)
Element
createElement(String tagName)
Element
createElementNS(String namespaceURI, String qualifiedName)
EntityReference
createEntityReference(String name)
XPathExpression
createExpression(String expression, XPathNSResolver resolver)
XPathNSResolver
createNSResolver(Node nodeResolver)
NodeIterator
createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
ProcessingInstruction
createProcessingInstruction(String target, String data)
Text
createTextNode(String data)
TreeWalker
createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
Object
evaluate(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result)
protected void
finalize()
DocumentType
getDoctype()
Element
getDocumentElement()
String
getDocumentURI()
DOMConfiguration
getDomConfig()
Element
getElementById(String elementId)
NodeList
getElementsByTagName(String tagName)
NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
DOMImplementation
getImplementation()
String
getInputEncoding()
Object
getParameter(String name)
DOMStringList
getParameterNames()
boolean
getStrictErrorChecking()
String
getXmlEncoding()
boolean
getXmlStandalone()
String
getXmlVersion()
Node
importNode(Node importedNode, boolean deep)
void
normalizeDocument()
Node
renameNode(Node n, String namespaceURI, String qualifiedName)
void
setDocumentURI(String documentURI)
void
setParameter(String name, Object value)
void
setStrictErrorChecking(boolean strictErrorChecking)
void
setXmlStandalone(boolean xmlStandalone)
void
setXmlVersion(String xmlVersion)
String
toString()

Methods inherited from class gnu.xml.libxmlj.dom.GnomeNode

appendChild, cloneNode, compareDocumentPosition, compareTo, equals, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString

Method Details

adoptNode

public Node adoptNode(Node source)
            throws DOMException
Specified by:
adoptNode in interface Document


canSetParameter

public boolean canSetParameter(String name,
                               Object value)
Specified by:
canSetParameter in interface DOMConfiguration


createAttribute

public Attr createAttribute(String name)
            throws DOMException
Specified by:
createAttribute in interface Document


createAttributeNS

public Attr createAttributeNS(String namespaceURI,
                              String qualifiedName)
            throws DOMException
Specified by:
createAttributeNS in interface Document


createCDATASection

public CDATASection createCDATASection(String data)
            throws DOMException
Specified by:
createCDATASection in interface Document


createComment

public Comment createComment(String data)
Specified by:
createComment in interface Document


createDocumentFragment

public DocumentFragment createDocumentFragment()
Specified by:
createDocumentFragment in interface Document


createDocumentType

public DocumentType createDocumentType(String name,
                                       String publicId,
                                       String systemId)


createElement

public Element createElement(String tagName)
            throws DOMException
Specified by:
createElement in interface Document


createElementNS

public Element createElementNS(String namespaceURI,
                               String qualifiedName)
            throws DOMException
Specified by:
createElementNS in interface Document


createEntityReference

public EntityReference createEntityReference(String name)
            throws DOMException
Specified by:
createEntityReference in interface Document


createExpression

public XPathExpression createExpression(String expression,
                                        XPathNSResolver resolver)
            throws XPathException,
                   DOMException
Specified by:
createExpression in interface XPathEvaluator


createNSResolver

public XPathNSResolver createNSResolver(Node nodeResolver)
Specified by:
createNSResolver in interface XPathEvaluator


createNodeIterator

public NodeIterator createNodeIterator(Node root,
                                       int whatToShow,
                                       NodeFilter filter,
                                       boolean entityReferenceExpansion)
            throws DOMException
Specified by:
createNodeIterator in interface DocumentTraversal


createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target,
                                                         String data)
            throws DOMException
Specified by:
createProcessingInstruction in interface Document


createTextNode

public Text createTextNode(String data)
Specified by:
createTextNode in interface Document


createTreeWalker

public TreeWalker createTreeWalker(Node root,
                                   int whatToShow,
                                   NodeFilter filter,
                                   boolean entityReferenceExpansion)
            throws DOMException
Specified by:
createTreeWalker in interface DocumentTraversal


evaluate

public Object evaluate(String expression,
                       Node contextNode,
                       XPathNSResolver resolver,
                       short type,
                       Object result)
            throws XPathException,
                   DOMException
Specified by:
evaluate in interface XPathEvaluator


finalize

protected void finalize()


getDoctype

public DocumentType getDoctype()
Specified by:
getDoctype in interface Document


getDocumentElement

public Element getDocumentElement()
Specified by:
getDocumentElement in interface Document


getDocumentURI

public String getDocumentURI()
Specified by:
getDocumentURI in interface Document


getDomConfig

public DOMConfiguration getDomConfig()
Specified by:
getDomConfig in interface Document


getElementById

public Element getElementById(String elementId)
Specified by:
getElementById in interface Document


getElementsByTagName

public NodeList getElementsByTagName(String tagName)
Specified by:
getElementsByTagName in interface Document


getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)
Specified by:
getElementsByTagNameNS in interface Document


getImplementation

public DOMImplementation getImplementation()
Specified by:
getImplementation in interface Document


getInputEncoding

public String getInputEncoding()
Specified by:
getInputEncoding in interface Document


getParameter

public Object getParameter(String name)
            throws DOMException
Specified by:
getParameter in interface DOMConfiguration


getParameterNames

public DOMStringList getParameterNames()
Specified by:
getParameterNames in interface DOMConfiguration


getStrictErrorChecking

public boolean getStrictErrorChecking()
Specified by:
getStrictErrorChecking in interface Document


getXmlEncoding

public String getXmlEncoding()
Specified by:
getXmlEncoding in interface Document


getXmlStandalone

public boolean getXmlStandalone()
Specified by:
getXmlStandalone in interface Document


getXmlVersion

public String getXmlVersion()
Specified by:
getXmlVersion in interface Document


importNode

public Node importNode(Node importedNode,
                       boolean deep)
            throws DOMException
Specified by:
importNode in interface Document


normalizeDocument

public void normalizeDocument()
Specified by:
normalizeDocument in interface Document


renameNode

public Node renameNode(Node n,
                       String namespaceURI,
                       String qualifiedName)
Specified by:
renameNode in interface Document


setDocumentURI

public void setDocumentURI(String documentURI)
Specified by:
setDocumentURI in interface Document


setParameter

public void setParameter(String name,
                         Object value)
            throws DOMException
Specified by:
setParameter in interface DOMConfiguration


setStrictErrorChecking

public void setStrictErrorChecking(boolean strictErrorChecking)
Specified by:
setStrictErrorChecking in interface Document


setXmlStandalone

public void setXmlStandalone(boolean xmlStandalone)
Specified by:
setXmlStandalone in interface Document


setXmlVersion

public void setXmlVersion(String xmlVersion)
Specified by:
setXmlVersion in interface Document


toString

public String toString()
Overrides:
toString in interface gnu.xml.libxmlj.dom.GnomeNode