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

String name()
returns the name of the node


value

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


valueOf

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


attrib

String attrib(String attribute)
returns attribute


selectNodes

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


selectSingleNode

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


get

DVSLNode get(String xpath)

copy

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


copy

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


children

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


toString

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

Overrides:
toString in class Object

getNodeImpl

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


getAttribMap

Map getAttribMap()


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