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_TOSTRINGDEFAULT_CONTENT_LIST_SIZENODE_TYPE_NAMESATTRIBUTE_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_NODEANY_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, supportsParentaccept, 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, writeaddElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructionsasXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOfequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNScompareDocumentPosition, getBaseURI, getFeature, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, setTextContent, setUserDatagetTextTrimaddElement, addElement, appendContent, content, elementByID, setProcessingInstructionsasXPathResult, createXPath, detach, getNodeTypeName, getPath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOfpublic 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 ElementgetNamespaceURI in class AbstractElementNamespace of this element or an
empty Stringpublic String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMExceptionpublic String getLocalName()
public String getNodeName()
public String getNodeValue() throws DOMException
DOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
DOMExceptionpublic 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
DOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
DOMExceptionpublic Node appendChild(Node newChild) throws DOMException
DOMExceptionpublic boolean hasChildNodes()
public Node cloneNode(boolean deep)
public boolean hasAttributes()
public String getTagName()
public void setAttribute(String name, String value) throws DOMException
DOMExceptionpublic void removeAttribute(String name) throws DOMException
DOMExceptionpublic Attr setAttributeNode(Attr newAttr) throws DOMException
DOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
DOMExceptionpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
DOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
DOMExceptionpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
DOMExceptionpublic boolean hasAttribute(String name)
protected DocumentFactory getDocumentFactory()
getDocumentFactory in class DefaultElementCopyright © 2012 JBoss by Red Hat. All Rights Reserved.