Package org.apache.dvsl
Interface DVSLNode
-
- All Known Implementing Classes:
Dom4jNodeImpl
public interface DVSLNodewrapper interface for nodes exposed in the template. Isolates the in-VSL DOM from that of the underlying implementation- Author:
- Geir Magnusson Jr.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringattrib(java.lang.String attribute)returns attributejava.util.Listchildren()returns a list of all children of the current nodejava.lang.Stringcopy()renders a deep copy of the XML tree below the current node to the outputjava.lang.Stringcopy(java.util.List nodeList)renders a deep copy of the nodes in the list ot the outputDVSLNodeget(java.lang.String xpath)java.util.MapgetAttribMap()java.lang.ObjectgetNodeImpl()returns the object corresponding to the node in the implementaion that we are using.java.lang.Stringname()returns the name of the nodejava.util.ListselectNodes(java.lang.String xpath)returns a list of nodes that satisfy the xpathDVSLNodeselectSingleNode(java.lang.String xpath)returns a single node that satisfies the xpathjava.lang.StringtoString()returns the 'value' of the nodejava.lang.Stringvalue()returns the 'value' of the nodejava.lang.ObjectvalueOf(java.lang.String xpath)returns the value of the XPAth expression
-
-
-
Method Detail
-
name
java.lang.String name()
returns the name of the node
-
value
java.lang.String value()
returns the 'value' of the node
-
valueOf
java.lang.Object valueOf(java.lang.String xpath)
returns the value of the XPAth expression
-
attrib
java.lang.String attrib(java.lang.String attribute)
returns attribute
-
selectNodes
java.util.List selectNodes(java.lang.String xpath)
returns a list of nodes that satisfy the xpath
-
selectSingleNode
DVSLNode selectSingleNode(java.lang.String xpath)
returns a single node that satisfies the xpath
-
get
DVSLNode get(java.lang.String xpath)
-
copy
java.lang.String copy()
renders a deep copy of the XML tree below the current node to the output
-
copy
java.lang.String copy(java.util.List nodeList)
renders a deep copy of the nodes in the list ot the output
-
children
java.util.List children()
returns a list of all children of the current node
-
toString
java.lang.String toString()
returns the 'value' of the node- Overrides:
toStringin classjava.lang.Object
-
getNodeImpl
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
java.util.Map getAttribMap()
-
-