net.sourceforge.jeuclid.dom
Class AbstractPartialDocumentImpl

java.lang.Object
  extended by net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
      extended by net.sourceforge.jeuclid.dom.AbstractPartialDocumentImpl
All Implemented Interfaces:
Document, Node
Direct Known Subclasses:
DocumentElement

public abstract class AbstractPartialDocumentImpl
extends AbstractPartialNodeImpl
implements Document

Partial implementation of org.w3c.dom.Document.

This implements only the functions necesessay for MathElements. Feel free to implement whatever functions you need.

Version:
$Revision: 310 $
Author:
Max Berger

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
AbstractPartialNodeImpl.NodeList
 
Field Summary
 
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
 
Constructor Summary
AbstractPartialDocumentImpl()
           
 
Method Summary
 Node adoptNode(Node source)
          
 Attr createAttribute(String name)
          
 Attr createAttributeNS(String namespaceURI, String qualifiedName)
          
 CDATASection createCDATASection(String data)
          
 Comment createComment(String data)
          
 DocumentFragment createDocumentFragment()
          
 Element createElement(String tagName)
          
 Element createElementNS(String namespaceURI, String qualifiedName)
          
 EntityReference createEntityReference(String name)
          
 ProcessingInstruction createProcessingInstruction(String target, String data)
          
 Text createTextNode(String data)
          
 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()
          
 String getNodeName()
          
 short getNodeType()
          
 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 setStrictErrorChecking(boolean strictErrorChecking)
          
 void setXmlStandalone(boolean xmlStandalone)
          
 void setXmlVersion(String xmlVersion)
          
 
Methods inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

AbstractPartialDocumentImpl

public AbstractPartialDocumentImpl()
Method Detail

adoptNode

public final Node adoptNode(Node source)

Specified by:
adoptNode in interface Document

createAttribute

public final Attr createAttribute(String name)

Specified by:
createAttribute in interface Document

createAttributeNS

public final Attr createAttributeNS(String namespaceURI,
                                    String qualifiedName)

Specified by:
createAttributeNS in interface Document

createCDATASection

public final CDATASection createCDATASection(String data)

Specified by:
createCDATASection in interface Document

createComment

public final Comment createComment(String data)

Specified by:
createComment in interface Document

createDocumentFragment

public final DocumentFragment createDocumentFragment()

Specified by:
createDocumentFragment in interface Document

createElement

public final Element createElement(String tagName)

Specified by:
createElement in interface Document

createElementNS

public final Element createElementNS(String namespaceURI,
                                     String qualifiedName)

Specified by:
createElementNS in interface Document

createEntityReference

public final EntityReference createEntityReference(String name)

Specified by:
createEntityReference in interface Document

createProcessingInstruction

public final ProcessingInstruction createProcessingInstruction(String target,
                                                               String data)

Specified by:
createProcessingInstruction in interface Document

createTextNode

public final Text createTextNode(String data)

Specified by:
createTextNode in interface Document

getDoctype

public final DocumentType getDoctype()

Specified by:
getDoctype in interface Document

getDocumentElement

public final Element getDocumentElement()

Specified by:
getDocumentElement in interface Document

getDocumentURI

public final String getDocumentURI()

Specified by:
getDocumentURI in interface Document

getDomConfig

public final DOMConfiguration getDomConfig()

Specified by:
getDomConfig in interface Document

getElementById

public final Element getElementById(String elementId)

Specified by:
getElementById in interface Document

getImplementation

public final DOMImplementation getImplementation()

Specified by:
getImplementation in interface Document

getInputEncoding

public final String getInputEncoding()

Specified by:
getInputEncoding in interface Document

getStrictErrorChecking

public final boolean getStrictErrorChecking()

Specified by:
getStrictErrorChecking in interface Document

getXmlEncoding

public final String getXmlEncoding()

Specified by:
getXmlEncoding in interface Document

getXmlStandalone

public final boolean getXmlStandalone()

Specified by:
getXmlStandalone in interface Document

getXmlVersion

public final String getXmlVersion()

Specified by:
getXmlVersion in interface Document

importNode

public final Node importNode(Node importedNode,
                             boolean deep)

Specified by:
importNode in interface Document

normalizeDocument

public final void normalizeDocument()

Specified by:
normalizeDocument in interface Document

renameNode

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

Specified by:
renameNode in interface Document

setDocumentURI

public final void setDocumentURI(String documentURI)

Specified by:
setDocumentURI in interface Document

setStrictErrorChecking

public final void setStrictErrorChecking(boolean strictErrorChecking)

Specified by:
setStrictErrorChecking in interface Document

setXmlStandalone

public final void setXmlStandalone(boolean xmlStandalone)

Specified by:
setXmlStandalone in interface Document

setXmlVersion

public final void setXmlVersion(String xmlVersion)

Specified by:
setXmlVersion in interface Document

getElementsByTagName

public final NodeList getElementsByTagName(String tagname)

Specified by:
getElementsByTagName in interface Document

getElementsByTagNameNS

public final NodeList getElementsByTagNameNS(String namespaceURI,
                                             String localName)

Specified by:
getElementsByTagNameNS in interface Document

getNodeName

public final String getNodeName()

Specified by:
getNodeName in interface Node

getNodeType

public final short getNodeType()

Specified by:
getNodeType in interface Node


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.