com.redspr.beanldom.stree
Class ElementBase
java.lang.Object
|
+--com.redspr.beanldom.stree.NodeImpl
|
+--com.redspr.beanldom.stree.ChildNode
|
+--com.redspr.beanldom.stree.ElementBase
- All Implemented Interfaces:
- Element, Node
- Direct Known Subclasses:
- ElementForArray, ElementForBean, ElementForNull, ElementForValue
- public abstract class ElementBase
- extends ChildNode
- implements Element
provide common features for Element classes
- Author:
- Sam Hough
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Method Summary |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
Node |
getNamedItem(String name)
|
Node |
getNamedItemNS(String namespaceURI,
String localName)
|
String |
getNodeName()
|
short |
getNodeType()
|
Document |
getOwnerDocument()
|
String |
getTagName()
|
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String namespaceURI,
String localName)
|
boolean |
hasAttributes()
|
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String namespaceURI,
String localName)
|
Node |
removeNamedItem(String name)
|
Node |
removeNamedItemNS(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)
|
Node |
setNamedItem(Node arg)
|
Node |
setNamedItemNS(Node arg)
|
| Methods inherited from class com.redspr.beanldom.stree.NodeImpl |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getPrefix, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, toString |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
ElementBase
protected ElementBase(NodeImpl parent,
String name2)
getOwnerDocument
public final Document getOwnerDocument()
- Specified by:
getOwnerDocument in interface Node
getTagName
public final String getTagName()
- Specified by:
getTagName in interface Element
getNodeName
public final String getNodeName()
- Specified by:
getNodeName in interface Node
getNodeType
public final short getNodeType()
- Specified by:
getNodeType in interface Node
getElementsByTagName
public NodeList getElementsByTagName(String name)
- Specified by:
getElementsByTagName in interface Element
hasAttribute
public final boolean hasAttribute(String name)
- Specified by:
hasAttribute in interface Element
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute in interface Element
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNode in interface Element
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes in interface Node- Overrides:
hasAttributes in class NodeImpl
getNamedItem
public Node getNamedItem(String name)
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI,
String localName)
- Specified by:
getAttributeNodeNS in interface Element
getAttributeNS
public String getAttributeNS(String namespaceURI,
String localName)
- Specified by:
getAttributeNS in interface Element
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- Specified by:
getElementsByTagNameNS in interface Element
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI,
String localName)
- Specified by:
hasAttributeNS in interface Element
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute in interface Element
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr)
- Specified by:
removeAttributeNode in interface Element
removeAttributeNS
public void removeAttributeNS(String namespaceURI,
String localName)
- Specified by:
removeAttributeNS in interface Element
setAttribute
public void setAttribute(String name,
String value)
- Specified by:
setAttribute in interface Element
setAttributeNode
public Attr setAttributeNode(Attr newAttr)
- Specified by:
setAttributeNode in interface Element
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr)
- Specified by:
setAttributeNodeNS in interface Element
setAttributeNS
public void setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
- Specified by:
setAttributeNS in interface Element
getNamedItemNS
public Node getNamedItemNS(String namespaceURI,
String localName)
setNamedItem
public Node setNamedItem(Node arg)
removeNamedItem
public Node removeNamedItem(String name)
setNamedItemNS
public Node setNamedItemNS(Node arg)
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI,
String localName)