gnu.xml.libxmlj.dom

Class GnomeDocument

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

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

A DOM document node implemented in libxml2.

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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

adoptNode

public Node adoptNode(Node source)
            throws DOMException

canSetParameter

public boolean canSetParameter(String name,
                               Object value)

createAttribute

public Attr createAttribute(String name)
            throws DOMException

createAttributeNS

public Attr createAttributeNS(String namespaceURI,
                              String qualifiedName)
            throws DOMException

createCDATASection

public CDATASection createCDATASection(String data)
            throws DOMException

createComment

public Comment createComment(String data)

createDocumentFragment

public DocumentFragment createDocumentFragment()

createDocumentType

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

createElement

public Element createElement(String tagName)
            throws DOMException

createElementNS

public Element createElementNS(String namespaceURI,
                               String qualifiedName)
            throws DOMException

createEntityReference

public EntityReference createEntityReference(String name)
            throws DOMException

createExpression

public XPathExpression createExpression(String expression,
                                        XPathNSResolver resolver)
            throws XPathException,
                   DOMException

createNSResolver

public XPathNSResolver createNSResolver(Node nodeResolver)

createNodeIterator

public NodeIterator createNodeIterator(Node root,
                                       int whatToShow,
                                       NodeFilter filter,
                                       boolean entityReferenceExpansion)
            throws DOMException

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target,
                                                         String data)
            throws DOMException

createTextNode

public Text createTextNode(String data)

createTreeWalker

public TreeWalker createTreeWalker(Node root,
                                   int whatToShow,
                                   NodeFilter filter,
                                   boolean entityReferenceExpansion)
            throws DOMException

evaluate

public Object evaluate(String expression,
                       Node contextNode,
                       XPathNSResolver resolver,
                       short type,
                       Object result)
            throws XPathException,
                   DOMException

finalize

protected void finalize()
Overrides:
finalize in interface Object

getDoctype

public DocumentType getDoctype()

getDocumentElement

public Element getDocumentElement()

getDocumentURI

public String getDocumentURI()

getDomConfig

public DOMConfiguration getDomConfig()

getElementById

public Element getElementById(String elementId)

getElementsByTagName

public NodeList getElementsByTagName(String tagName)

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)

getImplementation

public DOMImplementation getImplementation()

getInputEncoding

public String getInputEncoding()

getParameter

public Object getParameter(String name)
            throws DOMException

getParameterNames

public DOMStringList getParameterNames()

getStrictErrorChecking

public boolean getStrictErrorChecking()

getXmlEncoding

public String getXmlEncoding()

getXmlStandalone

public boolean getXmlStandalone()

getXmlVersion

public String getXmlVersion()

importNode

public Node importNode(Node importedNode,
                       boolean deep)
            throws DOMException

normalizeDocument

public void normalizeDocument()

renameNode

public Node renameNode(Node n,
                       String namespaceURI,
                       String qualifiedName)

setDocumentURI

public void setDocumentURI(String documentURI)

setParameter

public void setParameter(String name,
                         Object value)
            throws DOMException

setStrictErrorChecking

public void setStrictErrorChecking(boolean strictErrorChecking)

setXmlStandalone

public void setXmlStandalone(boolean xmlStandalone)

setXmlVersion

public void setXmlVersion(String xmlVersion)

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.