public abstract class AbstractAdapterNode extends Object implements AdapterNode
AbstractAdapterElement
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 |
---|
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)
AdapterNode
getChildAfter
in interface AdapterNode
child
- this nodepublic Node getChildBefore(Node child)
AdapterNode
getChildBefore
in interface AdapterNode
child
- this nodepublic NamedNodeMap getAttributes()
getAttributes
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public String getLocalName()
getLocalName
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public void setNodeValue(String string) throws DOMException
setNodeValue
in interface Node
DOMException
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public AdapterNode getParent()
AdapterNode
getParent
in interface AdapterNode
public void setParent(AdapterNode parent)
setParent
in interface AdapterNode
parent
- 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()
AdapterNode
getPropertyValue
in interface AdapterNode
public void setPropertyValue(Object prop)
setPropertyValue
in interface AdapterNode
prop
- the Java object (property) that we are adaptingpublic void setPrefix(String string) throws DOMException
setPrefix
in interface Node
DOMException
public Node getNextSibling()
getNextSibling
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public String getPropertyName()
AdapterNode
getPropertyName
in interface AdapterNode
public void setPropertyName(String name)
setPropertyName
in interface AdapterNode
name
- the name of the Java object (property) that we are adaptingpublic AdapterFactory getAdapterFactory()
AdapterNode
getAdapterFactory
in interface AdapterNode
public void setAdapterFactory(AdapterFactory adapterFactory)
setAdapterFactory
in interface AdapterNode
adapterFactory
- the adapter factory that created this node.public boolean isSupported(String string, String string1)
isSupported
in interface Node
public Node appendChild(Node node) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean hasChildNodes()
hasChildNodes
in interface Node
public Node insertBefore(Node node, Node node1) throws DOMException
insertBefore
in interface Node
DOMException
public Node removeChild(Node node) throws DOMException
removeChild
in interface Node
DOMException
public Node replaceChild(Node node, Node node1) throws DOMException
replaceChild
in interface Node
DOMException
public boolean isDefaultNamespace(String string)
isDefaultNamespace
in interface Node
public String lookupNamespaceURI(String string)
lookupNamespaceURI
in interface Node
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public String getBaseURI()
getBaseURI
in interface Node
public short compareDocumentPosition(Node node) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public void setTextContent(String string) throws DOMException
setTextContent
in interface Node
DOMException
public boolean isSameNode(Node node)
isSameNode
in interface Node
public String lookupPrefix(String string)
lookupPrefix
in interface Node
public boolean isEqualNode(Node node)
isEqualNode
in interface Node
public Object getFeature(String string, String string1)
getFeature
in interface Node
public Object setUserData(String string, Object object, UserDataHandler userDataHandler)
setUserData
in interface Node
public Object getUserData(String string)
getUserData
in interface Node
protected StrutsException operationNotSupported()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.