public abstract class AbstractElement extends AbstractNode implements Element
nodeATTRIBUTE_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, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, 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, setUserDataprotected 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 ElementElement.getTagName()public String getAttribute(String name)
getAttribute in interface ElementElement.getAttribute(java.lang.String)public void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionElement.setAttribute(java.lang.String, java.lang.String)public void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionElement.removeAttribute(java.lang.String)public Attr getAttributeNode(String name)
getAttributeNode in interface ElementElement.getAttributeNode(java.lang.String)public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionElement.setAttributeNode(org.w3c.dom.Attr)public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionElement.removeAttributeNode(org.w3c.dom.Attr)public NodeList getElementsByTagName(String name)
getElementsByTagName in interface ElementElement.getElementsByTagName(java.lang.String)public String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS in interface ElementDOMExceptionElement.getAttributeNS(java.lang.String, java.lang.String)public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionElement.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionElement.removeAttributeNS(java.lang.String, java.lang.String)public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS in interface ElementDOMExceptionElement.getAttributeNodeNS(java.lang.String, java.lang.String)public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionElement.setAttributeNodeNS(org.w3c.dom.Attr)public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS in interface ElementDOMExceptionElement.getElementsByTagNameNS(java.lang.String, java.lang.String)public boolean hasAttribute(String name)
hasAttribute in interface ElementElement.hasAttribute(java.lang.String)public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS in interface ElementDOMExceptionElement.hasAttributeNS(java.lang.String, java.lang.String)public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface ElementElement.getSchemaTypeInfo()public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionElement.setIdAttribute(java.lang.String, boolean)public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionElement.setIdAttributeNS(java.lang.String, java.lang.String, boolean)public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionElement.setIdAttributeNode(org.w3c.dom.Attr, boolean)Copyright © 2004-2013 Codehaus. All Rights Reserved.