org.apache.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
 String attrib(String attribute)
          returns attribute
 List children()
          returns a list of all children of the current node
 String copy()
          renders a deep copy of the XML tree below the current node to the output
 String copy(List nodeList)
          renders a deep copy of the nodes in the list ot the output
 DVSLNode get(String xpath)
           
 Map getAttribMap()
           
 Object getNodeImpl()
          returns the object corresponding to the node in the implementaion that we are using.
 String name()
          returns the name of the node
 List selectNodes(String xpath)
          returns a list of nodes that satisfy the xpath
 DVSLNode selectSingleNode(String xpath)
          returns a single node that satisfies the xpath
 String toString()
          returns the 'value' of the node
 String value()
          returns the 'value' of the node
 Object valueOf(String xpath)
          returns the value of the XPAth expression
 

Method Detail

name

public String name()
returns the name of the node


value

public String value()
returns the 'value' of the node


valueOf

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


attrib

public String attrib(String attribute)
returns attribute


selectNodes

public List selectNodes(String xpath)
returns a list of nodes that satisfy the xpath


selectSingleNode

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


get

public DVSLNode get(String xpath)

copy

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


copy

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


children

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


toString

public String toString()
returns the 'value' of the node


getNodeImpl

public 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 Map getAttribMap()


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.