Package org.apache.struts2.result.xslt
Class ProxyNodeAdapter
java.lang.Object
org.apache.struts2.result.xslt.AbstractAdapterNode
org.apache.struts2.result.xslt.ProxyNodeAdapter
- All Implemented Interfaces:
AdapterNode
,Node
- Direct Known Subclasses:
ProxyAttrAdapter
,ProxyElementAdapter
,ProxyTextNodeAdapter
ProxyNodeAdapter is a read-only delegating adapter for objects which already
implement the Node 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.
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
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 Summary
ConstructorsModifierConstructorDescriptionprotected
ProxyNodeAdapter
(AdapterFactory factory, AdapterNode parent, Node value) -
Method Summary
Modifier and TypeMethodDescriptionshort
boolean
boolean
boolean
isSupported
(String s, String s1) protected Node
node()
toString()
protected NamedNodeMap
wrap
(NamedNodeMap nnm) protected Node
Methods inherited from class org.apache.struts2.result.xslt.AbstractAdapterNode
appendChild, buildChildAdapters, cloneNode, compareDocumentPosition, getAdapterFactory, getBaseURI, getChildAdapters, getChildAfter, getChildBefore, getChildBeforeOrAfter, getChildNodes, getElementsByTagName, getElementsByTagNameNS, 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, setUserData
-
Constructor Details
-
ProxyNodeAdapter
-
-
Method Details
-
node
- Returns:
- the proxied Node value
-
wrap
- Parameters:
node
- the node- Returns:
- adapter to wrap the proxied node.
-
wrap
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
- Overrides:
getNodeName
in classAbstractAdapterNode
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classAbstractAdapterNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
- Overrides:
getNodeType
in classAbstractAdapterNode
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
- Overrides:
getAttributes
in classAbstractAdapterNode
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
- Overrides:
hasChildNodes
in classAbstractAdapterNode
-
isSupported
- Specified by:
isSupported
in interfaceNode
- Overrides:
isSupported
in classAbstractAdapterNode
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
- Overrides:
getNamespaceURI
in classAbstractAdapterNode
-
getPrefix
- Specified by:
getPrefix
in interfaceNode
- Overrides:
getPrefix
in classAbstractAdapterNode
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
- Overrides:
getLocalName
in classAbstractAdapterNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
- Overrides:
hasAttributes
in classAbstractAdapterNode
-
toString
- Overrides:
toString
in classAbstractAdapterNode
-