|
||||||||||
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 | |
---|---|
private AdapterFactory |
adapterFactory
|
private List<Node> |
childAdapters
|
private static NamedNodeMap |
EMPTY_NAMEDNODEMAP
|
private Logger |
log
|
private AdapterNode |
parent
|
private String |
propertyName
|
private Object |
propertyValue
|
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 |
Field Detail |
---|
private static final NamedNodeMap EMPTY_NAMEDNODEMAP
private List<Node> childAdapters
private Logger log
private Object propertyValue
private String propertyName
private AdapterNode parent
private AdapterFactory adapterFactory
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 AdapterNode
public Node getChildBefore(Node child)
AdapterNode
getChildBefore
in interface AdapterNode
public NodeList getElementsByTagName(String tagName)
public NodeList getElementsByTagNameNS(String string, String string1)
public 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)
AdapterNode
setParent
in interface AdapterNode
public Object getPropertyValue()
AdapterNode
getPropertyValue
in interface AdapterNode
public void setPropertyValue(Object prop)
AdapterNode
setPropertyValue
in interface AdapterNode
public void setPrefix(String string) throws DOMException
setPrefix
in interface Node
DOMException
public String getPrefix()
getPrefix
in interface Node
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)
AdapterNode
setPropertyName
in interface AdapterNode
public AdapterFactory getAdapterFactory()
AdapterNode
getAdapterFactory
in interface AdapterNode
public 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 Node
DOMException
public Node cloneNode(boolean b)
cloneNode
in interface Node
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 void normalize()
normalize
in interface Node
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()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |