sdlip.xml.dom
Class ElementImpl

java.lang.Object
  |
  +--sdlip.xml.dom.NodeImpl
        |
        +--sdlip.xml.dom.ElementImpl

public class ElementImpl
extends NodeImpl
implements Element


Field Summary
protected  NamedNodeMapImpl attributes
          Attributes.
 
Fields inherited from class sdlip.xml.dom.NodeImpl
firstChild, lastChild, name, nextSibling, ownerDocument, parentNode, previousSibling, value
 
Constructor Summary
ElementImpl(DocumentImpl ownerDoc, java.lang.String name)
          Factory constructor.
 
Method Summary
 org.w3c.dom.Node cloneNode(boolean deep)
           
 java.lang.String getAttribute(java.lang.String name)
           
 org.w3c.dom.Attr getAttributeNode(java.lang.String name)
           
 org.w3c.dom.NamedNodeMap getAttributes()
           
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
           
 short getNodeType()
           
 java.lang.String getNodeValue()
          Returns the node value.
 java.lang.String getTagName()
           
 java.lang.String getValue()
          Returns the element value.
 void normalize()
           
 void removeAttribute(java.lang.String name)
           
 org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
           
 void setAttribute(java.lang.String name, java.lang.String value)
           
 org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
           
 void setNodeValue(java.lang.String value)
           
 
Methods inherited from class sdlip.xml.dom.NodeImpl
appendChild, getChildNodes, getFirstChild, getLastChild, getLength, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, item, removeChild, replaceChild, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributes

protected NamedNodeMapImpl attributes
Attributes.
Constructor Detail

ElementImpl

public ElementImpl(DocumentImpl ownerDoc,
                   java.lang.String name)
Factory constructor.
Method Detail

getNodeType

public short getNodeType()
Overrides:
getNodeType in class NodeImpl

getNodeValue

public java.lang.String getNodeValue()
Returns the node value.
Overrides:
getNodeValue in class NodeImpl

setNodeValue

public void setNodeValue(java.lang.String value)
                  throws org.w3c.dom.DOMException
Overrides:
setNodeValue in class NodeImpl

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Overrides:
getAttributes in class NodeImpl

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
Overrides:
cloneNode in class NodeImpl

getValue

public java.lang.String getValue()
Returns the element value.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface Element

getAttributeNode

public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
Specified by:
getAttributeNode in interface Element

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
Specified by:
getElementsByTagName in interface Element

getTagName

public java.lang.String getTagName()
Specified by:
getTagName in interface Element

normalize

public void normalize()
Specified by:
normalize in interface Element

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface Element

removeAttributeNode

public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
                                     throws org.w3c.dom.DOMException
Specified by:
removeAttributeNode in interface Element

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Specified by:
setAttribute in interface Element

setAttributeNode

public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
                                  throws org.w3c.dom.DOMException
Specified by:
setAttributeNode in interface Element