public class DOMElement extends DefaultElement implements Element
DOMElement
implements an XML element which supports the W3C
DOM API.
EMPTY_ITERATOR, EMPTY_LIST, USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING
DEFAULT_CONTENT_LIST_SIZE
NODE_TYPE_NAMES
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
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
Constructor and Description |
---|
DOMElement(QName qname) |
DOMElement(QName qname,
int attributeCount) |
DOMElement(String name) |
DOMElement(String name,
Namespace namespace) |
add, additionalNamespaces, additionalNamespaces, addNewNode, attribute, attribute, attribute, attribute, attributeCount, attributeIterator, attributeList, attributeList, attributes, clearContent, clone, contentList, declaredNamespaces, element, element, element, getDocument, getNamespaceForPrefix, getNamespaceForURI, getParent, getQName, getStringValue, getText, indexOf, node, nodeCount, nodeIterator, processingInstruction, processingInstructions, processingInstructions, remove, removeNode, removeProcessingInstruction, setAttributeList, setAttributes, setContent, setDocument, setParent, setQName, supportsParent
accept, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addEntity, addNamespace, addNewNode, addNode, addNode, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, asXML, attributeValue, attributeValue, attributeValue, attributeValue, childAdded, childRemoved, createAttributeList, createAttributeList, createCopy, createCopy, createCopy, createElement, createElement, createSingleIterator, elementIterator, elementIterator, elementIterator, elementIterator, elements, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, ensureAttributesCapacity, getData, getName, getNamespace, getNamespacePrefix, getNamespacesForURI, getNodeType, getPath, getQName, getQualifiedName, getUniquePath, getXPathNameStep, getXPathResult, hasMixedContent, isRootElement, isTextOnly, normalize, remove, remove, remove, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setName, setNamespace, setText, toString, write
addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
compareDocumentPosition, getBaseURI, getFeature, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, setTextContent, setUserData
getTextTrim
addElement, addElement, appendContent, content, elementByID, setProcessingInstructions
asXPathResult, createXPath, detach, getNodeTypeName, getPath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf
public DOMElement(String name)
public DOMElement(QName qname)
public DOMElement(QName qname, int attributeCount)
public String getNamespaceURI()
Element
Returns the URI mapped to the namespace of this element if one exists
otherwise an empty String
is returned.
getNamespaceURI
in interface Element
getNamespaceURI
in class AbstractElement
Namespace
of this element or an
empty String
public String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMException
public String getLocalName()
public String getNodeName()
public String getNodeValue() throws DOMException
DOMException
public void setNodeValue(String nodeValue) throws DOMException
DOMException
public Node getParentNode()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public Node getPreviousSibling()
public Node getNextSibling()
public NamedNodeMap getAttributes()
public Document getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMException
public Node removeChild(Node oldChild) throws DOMException
DOMException
public Node appendChild(Node newChild) throws DOMException
DOMException
public boolean hasChildNodes()
public Node cloneNode(boolean deep)
public boolean hasAttributes()
public String getTagName()
public void setAttribute(String name, String value) throws DOMException
DOMException
public void removeAttribute(String name) throws DOMException
DOMException
public Attr setAttributeNode(Attr newAttr) throws DOMException
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
DOMException
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
DOMException
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
DOMException
public boolean hasAttribute(String name)
protected DocumentFactory getDocumentFactory()
getDocumentFactory
in class DefaultElement
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.