org.apache.tools.dvsl
Interface DVSLNode

All Known Implementing Classes:
Dom4jNodeImpl

public interface DVSLNode

wrapper interface for nodes exposed in the template. Isolates the in-VSL DOM from that of the underlying implementation

Author:
Geir Magnusson Jr.

Method Summary
 java.lang.String attrib(java.lang.String attribute)
          returns attribute
 java.util.List children()
          returns a list of all children of the current node
 java.lang.String copy()
          renders a deep copy of the XML tree below the current node to the output
 java.lang.String copy(java.util.List nodeList)
          renders a deep copy of the nodes in the list ot the output
 DVSLNode get(java.lang.String xpath)
           
 java.util.Map getAttribMap()
           
 java.lang.Object getNodeImpl()
          returns the object corresponding to the node in the implementaion that we are using.
 java.lang.String name()
          returns the name of the node
 java.util.List selectNodes(java.lang.String xpath)
          returns a list of nodes that satisfy the xpath
 DVSLNode selectSingleNode(java.lang.String xpath)
          returns a single node that satisfies the xpath
 java.lang.String toString()
          returns the 'value' of the node
 java.lang.String value()
          returns the 'value' of the node
 java.lang.Object valueOf(java.lang.String xpath)
          returns the value of the XPAth expression
 

Method Detail

name

public java.lang.String name()
returns the name of the node


value

public java.lang.String value()
returns the 'value' of the node


valueOf

public java.lang.Object valueOf(java.lang.String xpath)
returns the value of the XPAth expression


attrib

public java.lang.String attrib(java.lang.String attribute)
returns attribute


selectNodes

public java.util.List selectNodes(java.lang.String xpath)
returns a list of nodes that satisfy the xpath


selectSingleNode

public DVSLNode selectSingleNode(java.lang.String xpath)
returns a single node that satisfies the xpath


get

public DVSLNode get(java.lang.String xpath)

copy

public java.lang.String copy()
renders a deep copy of the XML tree below the current node to the output


copy

public java.lang.String copy(java.util.List nodeList)
renders a deep copy of the nodes in the list ot the output


children

public java.util.List children()
returns a list of all children of the current node


toString

public java.lang.String toString()
returns the 'value' of the node


getNodeImpl

public java.lang.Object getNodeImpl()
returns the object corresponding to the node in the implementaion that we are using. use only with the greatest of care


getAttribMap

public java.util.Map getAttribMap()


Copyright (c) 2001-2002 Apache Software Foundation