public abstract class AbstractElement extends AbstractNode implements Element
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractElement(Element element)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name) |
Attr |
getAttributeNode(String name) |
Attr |
getAttributeNodeNS(String namespaceURI,
String localName) |
String |
getAttributeNS(String namespaceURI,
String localName) |
Element |
getElement() |
abstract String |
getElementId()
Overridden by concrete implementors to return some reasonable identifier for
this section of XML.
|
NodeList |
getElementsByTagName(String name) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
TypeInfo |
getSchemaTypeInfo() |
String |
getTagName() |
protected String |
getText(Element element)
Returns the text value of an element.
|
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) |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
protected AbstractElement(Element element)
element
- in element to wrappublic Element getElement()
public abstract String getElementId()
protected String getText(Element element)
element
- the element of wich the text value should be returnedpublic String getTagName()
getTagName
in interface Element
Element.getTagName()
public String getAttribute(String name)
getAttribute
in interface Element
Element.getAttribute(java.lang.String)
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
Element.setAttribute(java.lang.String, java.lang.String)
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
Element.removeAttribute(java.lang.String)
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
Element.getAttributeNode(java.lang.String)
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
Element.setAttributeNode(org.w3c.dom.Attr)
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
Element.removeAttributeNode(org.w3c.dom.Attr)
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
Element.getElementsByTagName(java.lang.String)
public String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS
in interface Element
DOMException
Element.getAttributeNS(java.lang.String, java.lang.String)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
Element.removeAttributeNS(java.lang.String, java.lang.String)
public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS
in interface Element
DOMException
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
Element.setAttributeNodeNS(org.w3c.dom.Attr)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS
in interface Element
DOMException
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)
public boolean hasAttribute(String name)
hasAttribute
in interface Element
Element.hasAttribute(java.lang.String)
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS
in interface Element
DOMException
Element.hasAttributeNS(java.lang.String, java.lang.String)
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
Element.getSchemaTypeInfo()
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
Element.setIdAttribute(java.lang.String, boolean)
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException
Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)
Copyright © 2004-2013 Codehaus. All Rights Reserved.