gnu.xml.libxmlj.dom

Class GnomeDocument

Implemented Interfaces:
Comparable<T>, 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

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

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()
Overrides:
finalize in interface Object

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

GnomeDocument.java - Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.