public class ProxyElementAdapter extends ProxyNodeAdapter implements Element
ProxyElementAdapter is a pass-through adapter for objects which already implement the Element interface. All methods are proxied to the underlying Node except getParent(), getNextSibling() and getPreviousSibling(), which are implemented by the abstract adapter node to work with the parent adapter.
Note: this class wants to be (extend) both an AbstractElementAdapter and ProxyElementAdapter, but its proxy-ness is winning right now.
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| Constructor and Description |
|---|
ProxyElementAdapter(AdapterFactory factory,
AdapterNode parent,
Element value) |
getAttributes, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getPrefix, hasAttributes, hasChildNodes, isSupported, node, wrap, wrapappendChild, cloneNode, compareDocumentPosition, getAdapterFactory, getBaseURI, getChildAdapters, getChildAfter, getChildBefore, getChildBeforeOrAfter, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getPropertyName, getPropertyValue, getTextContent, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, operationNotSupported, removeChild, replaceChild, setAdapterFactory, setContext, setNodeValue, setParent, setPrefix, setPropertyName, setPropertyValue, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, setUserDatapublic ProxyElementAdapter(AdapterFactory factory, AdapterNode parent, Element value)
protected Element element()
protected List<Node> buildChildAdapters()
AbstractAdapterNodebuildChildAdapters in class AbstractAdapterNodepublic String getTagName()
getTagName in interface Elementpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic String getAttribute(String name)
getAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic NodeList getElementsByTagName(String name)
getElementsByTagName in interface ElementgetElementsByTagName in class AbstractAdapterNodepublic String getAttributeNS(String namespaceURI, String localName)
getAttributeNS in interface Elementpublic Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS in interface Elementpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface ElementgetElementsByTagNameNS in class AbstractAdapterNodepublic void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Elementpublic void setIdAttribute(String string, boolean b) throws DOMException
setIdAttribute in interface ElementDOMExceptionpublic void setIdAttributeNS(String string, String string1, boolean b) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionpublic void setIdAttributeNode(Attr attr, boolean b) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic String toString()
toString in class ProxyNodeAdapterCopyright © 2000–2021 Apache Software Foundation. All rights reserved.