net.sourceforge.jeuclid.dom
Class AbstractPartialElementImpl

java.lang.Object
  extended by net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
      extended by net.sourceforge.jeuclid.dom.AbstractPartialElementImpl
All Implemented Interfaces:
Element, Node
Direct Known Subclasses:
AbstractChangeTrackingElement

public abstract class AbstractPartialElementImpl
extends AbstractPartialNodeImpl
implements Element

Partial implementation of org.w3c.dom.Node.

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

Version:
$Revision: 356 $
Author:
Max Berger

Nested Class Summary
static class AbstractPartialElementImpl.AttributeNodeMap
          Partial Implementation for an NodeMap describing Attributes.
static class AbstractPartialElementImpl.AttrImpl
          Partial implementation of Attr.
 
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
AbstractPartialElementImpl()
           
 
Method Summary
 String getAttribute(String name)
          
 Attr getAttributeNode(String name)
          
 Attr getAttributeNodeNS(String namespaceURI, String localName)
          
 String getAttributeNS(String namespaceURI, String localName)
          
 NamedNodeMap getAttributes()
          
 NodeList getElementsByTagName(String name)
          
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
          
 String getLocalName()
          
 String getNodeName()
          
 short getNodeType()
          
 TypeInfo getSchemaTypeInfo()
          
 boolean hasAttribute(String name)
          
 boolean hasAttributeNS(String namespaceURI, String localName)
          
 void removeAttribute(String name)
          
 Attr removeAttributeNode(Attr oldAttr)
          
 void removeAttributeNS(String namespaceURI, String localName)
          
 void setAttribute(String name, String value)
          
 Attr setAttributeNode(Attr newAttr)
          
 Attr setAttributeNodeNS(Attr newAttr)
          
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
          
 void setIdAttribute(String name, boolean isId)
          
 void setIdAttributeNode(Attr idAttr, boolean isId)
          
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
          
 String toString()
          
 
Methods inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, 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, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getTagName
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, 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

AbstractPartialElementImpl

public AbstractPartialElementImpl()
Method Detail

getAttribute

public final String getAttribute(String name)

Specified by:
getAttribute in interface Element

getAttributeNS

public final String getAttributeNS(String namespaceURI,
                                   String localName)

Specified by:
getAttributeNS in interface Element

setAttribute

public void setAttribute(String name,
                         String value)

Specified by:
setAttribute in interface Element

getAttributeNode

public final Attr getAttributeNode(String name)

Specified by:
getAttributeNode in interface Element

getAttributeNodeNS

public final Attr getAttributeNodeNS(String namespaceURI,
                                     String localName)

Specified by:
getAttributeNodeNS in interface Element

getElementsByTagName

public final NodeList getElementsByTagName(String name)

Specified by:
getElementsByTagName in interface Element

getElementsByTagNameNS

public final NodeList getElementsByTagNameNS(String namespaceURI,
                                             String localName)

Specified by:
getElementsByTagNameNS in interface Element

getSchemaTypeInfo

public final TypeInfo getSchemaTypeInfo()

Specified by:
getSchemaTypeInfo in interface Element

hasAttribute

public final boolean hasAttribute(String name)

Specified by:
hasAttribute in interface Element

hasAttributeNS

public final boolean hasAttributeNS(String namespaceURI,
                                    String localName)

Specified by:
hasAttributeNS in interface Element

removeAttribute

public final void removeAttribute(String name)

Specified by:
removeAttribute in interface Element

removeAttributeNS

public final void removeAttributeNS(String namespaceURI,
                                    String localName)

Specified by:
removeAttributeNS in interface Element

removeAttributeNode

public final Attr removeAttributeNode(Attr oldAttr)

Specified by:
removeAttributeNode in interface Element

setAttributeNS

public final void setAttributeNS(String namespaceURI,
                                 String qualifiedName,
                                 String value)

Specified by:
setAttributeNS in interface Element

setAttributeNode

public final Attr setAttributeNode(Attr newAttr)

Specified by:
setAttributeNode in interface Element

setAttributeNodeNS

public final Attr setAttributeNodeNS(Attr newAttr)

Specified by:
setAttributeNodeNS in interface Element

setIdAttribute

public final void setIdAttribute(String name,
                                 boolean isId)

Specified by:
setIdAttribute in interface Element

setIdAttributeNS

public final void setIdAttributeNS(String namespaceURI,
                                   String localName,
                                   boolean isId)

Specified by:
setIdAttributeNS in interface Element

setIdAttributeNode

public final void setIdAttributeNode(Attr idAttr,
                                     boolean isId)

Specified by:
setIdAttributeNode in interface Element

getNodeName

public final String getNodeName()

Specified by:
getNodeName in interface Node

getAttributes

public NamedNodeMap getAttributes()

Specified by:
getAttributes in interface Node
Overrides:
getAttributes in class AbstractPartialNodeImpl

getLocalName

public final String getLocalName()

Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class AbstractPartialNodeImpl

getNodeType

public final short getNodeType()

Specified by:
getNodeType in interface Node

toString

public final String toString()

Overrides:
toString in class Object


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