Package org.apache.struts2.result.xslt
Class AbstractAdapterNode
java.lang.Object
org.apache.struts2.result.xslt.AbstractAdapterNode
- All Implemented Interfaces:
- AdapterNode,- Node
- Direct Known Subclasses:
- AbstractAdapterElement,- ProxyNodeAdapter,- SimpleAdapterDocument,- SimpleTextNode
AbstractAdapterNode is the base for childAdapters that expose a read-only view
 of a Java object as a DOM Node. This class implements the core parent-child
 and sibling node traversal functionality shared by all adapter type nodes
 and used in proxy node support.
- See Also:
- 
Field SummaryFields inherited from interface org.w3c.dom.NodeATTRIBUTE_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionappendChild(Node node) subclasses override to produce their childrencloneNode(boolean b) shortcompareDocumentPosition(Node node) The adapter factory that created this node.Lazily initialize child adaptersgetChildAfter(Node child) The child node after the specified siblinggetChildBefore(Node child) The child node before the specified siblinggetChildBeforeOrAfter(Node child, boolean before) getElementsByTagName(String tagName) getElementsByTagNameNS(String string, String string1) getFeature(String string, String string1) shortThe parent adapter node of this node.The name of the Java object (property) that we are adaptingThe Java object (property) that we are adaptinggetUserData(String string) booleanbooleaninsertBefore(Node node, Node node1) booleanisDefaultNamespace(String string) booleanisEqualNode(Node node) booleanisSameNode(Node node) booleanisSupported(String string, String string1) lookupNamespaceURI(String string) lookupPrefix(String string) voidprotected StrutsExceptionremoveChild(Node node) replaceChild(Node node, Node node1) voidsetAdapterFactory(AdapterFactory adapterFactory) protected voidsetContext(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value) voidsetNodeValue(String string) voidsetParent(AdapterNode parent) voidvoidsetPropertyName(String name) voidsetPropertyValue(Object prop) voidsetTextContent(String string) setUserData(String string, Object object, UserDataHandler userDataHandler) toString()
- 
Constructor Details- 
AbstractAdapterNodeprotected AbstractAdapterNode()
 
- 
- 
Method Details- 
setContextprotected void setContext(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object value) - Parameters:
- adapterFactory- the adapter factory
- parent- the parent adapter node
- propertyName- the property name
- value- value
 
- 
buildChildAdapterssubclasses override to produce their children- Returns:
- List of child adapters.
 
- 
getChildAdaptersLazily initialize child adapters- Returns:
- node list
 
- 
getChildBeforeOrAfter
- 
getChildAfterDescription copied from interface:AdapterNodeThe child node after the specified sibling- Specified by:
- getChildAfterin interface- AdapterNode
- Parameters:
- child- this node
- Returns:
- the child node after
 
- 
getChildBeforeDescription copied from interface:AdapterNodeThe child node before the specified sibling- Specified by:
- getChildBeforein interface- AdapterNode
- Parameters:
- child- this node
- Returns:
- the child node before
 
- 
getElementsByTagName
- 
getElementsByTagNameNS
- 
getAttributes- Specified by:
- getAttributesin interface- Node
 
- 
getChildNodes- Specified by:
- getChildNodesin interface- Node
 
- 
getFirstChild- Specified by:
- getFirstChildin interface- Node
 
- 
getLastChild- Specified by:
- getLastChildin interface- Node
 
- 
getLocalName- Specified by:
- getLocalNamein interface- Node
 
- 
getNamespaceURI- Specified by:
- getNamespaceURIin interface- Node
 
- 
setNodeValue- Specified by:
- setNodeValuein interface- Node
- Throws:
- DOMException
 
- 
getNodeValue- Specified by:
- getNodeValuein interface- Node
- Throws:
- DOMException
 
- 
getOwnerDocument- Specified by:
- getOwnerDocumentin interface- Node
 
- 
getParentNode- Specified by:
- getParentNodein interface- Node
 
- 
getParentDescription copied from interface:AdapterNodeThe parent adapter node of this node. Note that our parent must be another adapter node, but our children may be any kind of Node.- Specified by:
- getParentin interface- AdapterNode
- Returns:
- the parent adapter node
 
- 
setParent- Specified by:
- setParentin interface- AdapterNode
- Parameters:
- 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.
 
- 
getPropertyValueDescription copied from interface:AdapterNodeThe Java object (property) that we are adapting- Specified by:
- getPropertyValuein interface- AdapterNode
- Returns:
- the property object
 
- 
setPropertyValue- Specified by:
- setPropertyValuein interface- AdapterNode
- Parameters:
- prop- the Java object (property) that we are adapting
 
- 
setPrefix- Specified by:
- setPrefixin interface- Node
- Throws:
- DOMException
 
- 
getPrefix
- 
getNextSibling- Specified by:
- getNextSiblingin interface- Node
 
- 
getPreviousSibling- Specified by:
- getPreviousSiblingin interface- Node
 
- 
getPropertyNameDescription copied from interface:AdapterNodeThe name of the Java object (property) that we are adapting- Specified by:
- getPropertyNamein interface- AdapterNode
- Returns:
- the property name
 
- 
setPropertyName- Specified by:
- setPropertyNamein interface- AdapterNode
- Parameters:
- name- the name of the Java object (property) that we are adapting
 
- 
getAdapterFactoryDescription copied from interface:AdapterNodeThe adapter factory that created this node.- Specified by:
- getAdapterFactoryin interface- AdapterNode
- Returns:
- the adapter factory
 
- 
setAdapterFactory- Specified by:
- setAdapterFactoryin interface- AdapterNode
- Parameters:
- adapterFactory- the adapter factory that created this node.
 
- 
isSupported- Specified by:
- isSupportedin interface- Node
 
- 
appendChild- Specified by:
- appendChildin interface- Node
- Throws:
- DOMException
 
- 
cloneNode
- 
hasAttributespublic boolean hasAttributes()- Specified by:
- hasAttributesin interface- Node
 
- 
hasChildNodespublic boolean hasChildNodes()- Specified by:
- hasChildNodesin interface- Node
 
- 
insertBefore- Specified by:
- insertBeforein interface- Node
- Throws:
- DOMException
 
- 
normalizepublic void normalize()
- 
removeChild- Specified by:
- removeChildin interface- Node
- Throws:
- DOMException
 
- 
replaceChild- Specified by:
- replaceChildin interface- Node
- Throws:
- DOMException
 
- 
isDefaultNamespace- Specified by:
- isDefaultNamespacein interface- Node
 
- 
lookupNamespaceURI- Specified by:
- lookupNamespaceURIin interface- Node
 
- 
getNodeName- Specified by:
- getNodeNamein interface- Node
 
- 
getNodeTypepublic short getNodeType()- Specified by:
- getNodeTypein interface- Node
 
- 
getBaseURI- Specified by:
- getBaseURIin interface- Node
 
- 
compareDocumentPosition- Specified by:
- compareDocumentPositionin interface- Node
- Throws:
- DOMException
 
- 
getTextContent- Specified by:
- getTextContentin interface- Node
- Throws:
- DOMException
 
- 
setTextContent- Specified by:
- setTextContentin interface- Node
- Throws:
- DOMException
 
- 
isSameNode- Specified by:
- isSameNodein interface- Node
 
- 
lookupPrefix- Specified by:
- lookupPrefixin interface- Node
 
- 
isEqualNode- Specified by:
- isEqualNodein interface- Node
 
- 
getFeature- Specified by:
- getFeaturein interface- Node
 
- 
setUserData- Specified by:
- setUserDatain interface- Node
 
- 
getUserData- Specified by:
- getUserDatain interface- Node
 
- 
operationNotSupported
- 
toString
 
-