com.opensymphony.webwork.views.xslt
Class DefaultElementAdapter

java.lang.Object
  extended bycom.opensymphony.webwork.views.xslt.DefaultAdapterNode
      extended bycom.opensymphony.webwork.views.xslt.DefaultElementAdapter
All Implemented Interfaces:
AdapterNode, Element, Node
Direct Known Subclasses:
ArrayAdapter, BeanAdapter, CollectionAdapter, ToStringAdapter

public abstract class DefaultElementAdapter
extends DefaultAdapterNode
implements AdapterNode, Element

Author:
Philipp Meier Date: 14.10.2003 Time: 19:01:02

Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
DefaultElementAdapter(DOMAdapter rootAdapter, AdapterNode parent, String propertyName, Object value)
           
 
Method Summary
protected abstract  List buildChildrenAdapters()
           
protected  List getAdapters()
           
 String getAttribute(String string)
          *********************************************************************************** No attributes, return empty attributes if asked.
 Attr getAttributeNode(String string)
           
 Attr getAttributeNodeNS(String string, String string1)
           
 String getAttributeNS(String string, String string1)
           
 NodeList getChildNodes()
           
 NodeList getElementsByTagName(String tagName)
           
 NodeList getElementsByTagNameNS(String string, String string1)
           
 Node getFirstChild()
           
 Node getLastChild()
           
 Node getNextSibling(AdapterNode child)
           
 String getNodeName()
           
 short getNodeType()
           
 String getTagName()
           
 boolean hasAttribute(String string)
           
 boolean hasAttributeNS(String string, String string1)
           
 boolean hasChildNodes()
           
protected  void initChildrenIfNessecary()
           
 void removeAttribute(String string)
           
 Attr removeAttributeNode(Attr attr)
           
 void removeAttributeNS(String string, String string1)
           
 void setAttribute(String string, String string1)
          *********************************************************************************** Not supported below ************************************************************************************
 Attr setAttributeNode(Attr attr)
           
 Attr setAttributeNodeNS(Attr attr)
           
 void setAttributeNS(String string, String string1, String string2)
           
 
Methods inherited from class com.opensymphony.webwork.views.xslt.DefaultAdapterNode
appendChild, cloneNode, equals, getAttributes, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentAdapterNode, getParentNode, getPrefix, getPreviousSibling, getPropertyName, getRootAdapter, getValue, hasAttributes, hashCode, insertBefore, isSupported, normalize, operationNotSupported, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.webwork.views.xslt.AdapterNode
getParentAdapterNode, getPropertyName, getRootAdapter, getValue
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

DefaultElementAdapter

public DefaultElementAdapter(DOMAdapter rootAdapter,
                             AdapterNode parent,
                             String propertyName,
                             Object value)
Method Detail

setAttribute

public void setAttribute(String string,
                         String string1)
                  throws DOMException
*********************************************************************************** Not supported below ************************************************************************************

Specified by:
setAttribute in interface Element
Throws:
DOMException

getAttribute

public String getAttribute(String string)
*********************************************************************************** No attributes, return empty attributes if asked. ************************************************************************************

Specified by:
getAttribute in interface Element

setAttributeNS

public void setAttributeNS(String string,
                           String string1,
                           String string2)
                    throws DOMException
Specified by:
setAttributeNS in interface Element
Throws:
DOMException

getAttributeNS

public String getAttributeNS(String string,
                             String string1)
Specified by:
getAttributeNS in interface Element

setAttributeNode

public Attr setAttributeNode(Attr attr)
                      throws DOMException
Specified by:
setAttributeNode in interface Element
Throws:
DOMException

getAttributeNode

public Attr getAttributeNode(String string)
Specified by:
getAttributeNode in interface Element

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr attr)
                        throws DOMException
Specified by:
setAttributeNodeNS in interface Element
Throws:
DOMException

getAttributeNodeNS

public Attr getAttributeNodeNS(String string,
                               String string1)
Specified by:
getAttributeNodeNS in interface Element

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface Node
Overrides:
getChildNodes in class DefaultAdapterNode

getElementsByTagName

public NodeList getElementsByTagName(String tagName)
Specified by:
getElementsByTagName in interface Element

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String string,
                                       String string1)
Specified by:
getElementsByTagNameNS in interface Element

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Overrides:
getFirstChild in class DefaultAdapterNode

getLastChild

public Node getLastChild()
Specified by:
getLastChild in interface Node
Overrides:
getLastChild in class DefaultAdapterNode

getNextSibling

public Node getNextSibling(AdapterNode child)
Specified by:
getNextSibling in interface AdapterNode
Overrides:
getNextSibling in class DefaultAdapterNode

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node

getTagName

public String getTagName()
Specified by:
getTagName in interface Element

hasAttribute

public boolean hasAttribute(String string)
Specified by:
hasAttribute in interface Element

hasAttributeNS

public boolean hasAttributeNS(String string,
                              String string1)
Specified by:
hasAttributeNS in interface Element

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node
Overrides:
hasChildNodes in class DefaultAdapterNode

removeAttribute

public void removeAttribute(String string)
                     throws DOMException
Specified by:
removeAttribute in interface Element
Throws:
DOMException

removeAttributeNS

public void removeAttributeNS(String string,
                              String string1)
                       throws DOMException
Specified by:
removeAttributeNS in interface Element
Throws:
DOMException

removeAttributeNode

public Attr removeAttributeNode(Attr attr)
                         throws DOMException
Specified by:
removeAttributeNode in interface Element
Throws:
DOMException

getAdapters

protected List getAdapters()

buildChildrenAdapters

protected abstract List buildChildrenAdapters()

initChildrenIfNessecary

protected void initChildrenIfNessecary()

WebWork Project Page