public abstract class AbstractAdapterNode extends Object implements AdapterNode
AbstractAdapterElementATTRIBUTE_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 |
|---|
AbstractAdapterNode() |
protected void setContext(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value)
adapterFactory - the adapter factoryparent - the parent adapter nodepropertyName - the property namevalue - valueprotected List<Node> buildChildAdapters()
protected List<Node> getChildAdapters()
public Node getChildAfter(Node child)
AdapterNodegetChildAfter in interface AdapterNodechild - this nodepublic Node getChildBefore(Node child)
AdapterNodegetChildBefore in interface AdapterNodechild - this nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic String getLocalName()
getLocalName in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic void setNodeValue(String string) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic String getNodeValue() throws DOMException
getNodeValue in interface NodeDOMExceptionpublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic AdapterNode getParent()
AdapterNodegetParent in interface AdapterNodepublic void setParent(AdapterNode parent)
setParent in interface AdapterNodeparent - the parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any
kind of Node.public Object getPropertyValue()
AdapterNodegetPropertyValue in interface AdapterNodepublic void setPropertyValue(Object prop)
setPropertyValue in interface AdapterNodeprop - the Java object (property) that we are adaptingpublic void setPrefix(String string) throws DOMException
setPrefix in interface NodeDOMExceptionpublic Node getNextSibling()
getNextSibling in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic String getPropertyName()
AdapterNodegetPropertyName in interface AdapterNodepublic void setPropertyName(String name)
setPropertyName in interface AdapterNodename - the name of the Java object (property) that we are adaptingpublic AdapterFactory getAdapterFactory()
AdapterNodegetAdapterFactory in interface AdapterNodepublic void setAdapterFactory(AdapterFactory adapterFactory)
setAdapterFactory in interface AdapterNodeadapterFactory - the adapter factory that created this node.public boolean isSupported(String string, String string1)
isSupported in interface Nodepublic Node appendChild(Node node) throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node insertBefore(Node node, Node node1) throws DOMException
insertBefore in interface NodeDOMExceptionpublic Node removeChild(Node node) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node replaceChild(Node node, Node node1) throws DOMException
replaceChild in interface NodeDOMExceptionpublic boolean isDefaultNamespace(String string)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String string)
lookupNamespaceURI in interface Nodepublic String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic short compareDocumentPosition(Node node) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic void setTextContent(String string) throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node node)
isSameNode in interface Nodepublic String lookupPrefix(String string)
lookupPrefix in interface Nodepublic boolean isEqualNode(Node node)
isEqualNode in interface Nodepublic Object getFeature(String string, String string1)
getFeature in interface Nodepublic Object setUserData(String string, Object object, UserDataHandler userDataHandler)
setUserData in interface Nodepublic Object getUserData(String string)
getUserData in interface Nodeprotected StrutsException operationNotSupported()
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.