|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.views.xslt.AbstractAdapterNode
public abstract class AbstractAdapterNode
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.
AbstractAdapterElement| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AbstractAdapterNode()
|
|
| Method Summary | |
|---|---|
Node |
appendChild(Node node)
|
protected List<Node> |
buildChildAdapters()
subclasses override to produce their children |
Node |
cloneNode(boolean b)
|
short |
compareDocumentPosition(Node node)
|
AdapterFactory |
getAdapterFactory()
The adapter factory that created this node. |
NamedNodeMap |
getAttributes()
|
String |
getBaseURI()
|
protected List<Node> |
getChildAdapters()
Lazily initialize child childAdapters |
Node |
getChildAfter(Node child)
The child node after the specified sibling |
Node |
getChildBefore(Node child)
The child node before the specified sibling |
Node |
getChildBeforeOrAfter(Node child,
boolean before)
|
NodeList |
getChildNodes()
|
NodeList |
getElementsByTagName(String tagName)
|
NodeList |
getElementsByTagNameNS(String string,
String string1)
|
Object |
getFeature(String string,
String string1)
|
Node |
getFirstChild()
|
Node |
getLastChild()
|
String |
getLocalName()
|
String |
getNamespaceURI()
|
Node |
getNextSibling()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Document |
getOwnerDocument()
|
AdapterNode |
getParent()
The parent adapter node of this node. |
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
String |
getPropertyName()
The name of the Java object (property) that we are adapting |
Object |
getPropertyValue()
The Java object (property) that we are adapting |
String |
getTextContent()
|
Object |
getUserData(String string)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
insertBefore(Node node,
Node node1)
|
boolean |
isDefaultNamespace(String string)
|
boolean |
isEqualNode(Node node)
|
boolean |
isSameNode(Node node)
|
boolean |
isSupported(String string,
String string1)
|
String |
lookupNamespaceURI(String string)
|
String |
lookupPrefix(String string)
|
void |
normalize()
|
protected StrutsException |
operationNotSupported()
|
Node |
removeChild(Node node)
|
Node |
replaceChild(Node node,
Node node1)
|
void |
setAdapterFactory(AdapterFactory adapterFactory)
The adapter factory that created this node. |
protected void |
setContext(AdapterFactory adapterFactory,
AdapterNode parent,
String propertyName,
Object value)
|
void |
setNodeValue(String string)
|
void |
setParent(AdapterNode parent)
The parent adapter node of this node. |
void |
setPrefix(String string)
|
void |
setPropertyName(String name)
The name of the Java object (property) that we are adapting |
void |
setPropertyValue(Object prop)
The Java object (property) that we are adapting |
void |
setTextContent(String string)
|
Object |
setUserData(String string,
Object object,
UserDataHandler userDataHandler)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAdapterNode()
| Method Detail |
|---|
protected void setContext(AdapterFactory adapterFactory,
AdapterNode parent,
String propertyName,
Object value)
adapterFactory - parent - propertyName - value - protected List<Node> buildChildAdapters()
protected List<Node> getChildAdapters()
public Node getChildBeforeOrAfter(Node child,
boolean before)
public Node getChildAfter(Node child)
AdapterNode
getChildAfter in interface AdapterNodepublic Node getChildBefore(Node child)
AdapterNode
getChildBefore in interface AdapterNodepublic NodeList getElementsByTagName(String tagName)
public NodeList getElementsByTagNameNS(String string,
String string1)
public 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 Node
public void setNodeValue(String string)
throws DOMException
setNodeValue in interface NodeDOMException
public String getNodeValue()
throws DOMException
getNodeValue in interface NodeDOMExceptionpublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic AdapterNode getParent()
AdapterNode
getParent in interface AdapterNodepublic void setParent(AdapterNode parent)
AdapterNode
setParent in interface AdapterNodepublic Object getPropertyValue()
AdapterNode
getPropertyValue in interface AdapterNodepublic void setPropertyValue(Object prop)
AdapterNode
setPropertyValue in interface AdapterNode
public void setPrefix(String string)
throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getPrefix()
getPrefix in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic String getPropertyName()
AdapterNode
getPropertyName in interface AdapterNodepublic void setPropertyName(String name)
AdapterNode
setPropertyName in interface AdapterNodepublic AdapterFactory getAdapterFactory()
AdapterNode
getAdapterFactory in interface AdapterNodepublic void setAdapterFactory(AdapterFactory adapterFactory)
AdapterNode
setAdapterFactory in interface AdapterNode
public boolean isSupported(String string,
String string1)
isSupported in interface Node
public Node appendChild(Node node)
throws DOMException
appendChild in interface NodeDOMExceptionpublic Node cloneNode(boolean b)
cloneNode in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean hasChildNodes()
hasChildNodes in interface Node
public Node insertBefore(Node node,
Node node1)
throws DOMException
insertBefore in interface NodeDOMExceptionpublic void normalize()
normalize in interface Node
public Node removeChild(Node node)
throws DOMException
removeChild in interface NodeDOMException
public 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 Node
public short compareDocumentPosition(Node node)
throws DOMException
compareDocumentPosition in interface NodeDOMException
public String getTextContent()
throws DOMException
getTextContent in interface NodeDOMException
public 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 Node
public Object getFeature(String string,
String string1)
getFeature in interface Node
public Object setUserData(String string,
Object object,
UserDataHandler userDataHandler)
setUserData in interface Nodepublic Object getUserData(String string)
getUserData in interface Nodeprotected StrutsException operationNotSupported()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||