Class wobzilla_xpath

Object
   |
   +--wobzilla_xpath

class wobzilla_xpath

This service provides an interface for evaluating xpath-expressions on the data-model.


 
Method Summary
 function getBoolean(modelNode, xpath, context)
           evaluates the xpath expression on the modelNode and returns the first selected node converted to a boolean value.
 function getNode(modelNode, xpath, context)
           evaluates the xpath expression on the modelNode and returns the first selected node.
 function getNodeSafe(modelNode, xpath, context)
           same as getNode but throws an exception when no node was found.
 function getNodes(modelNode, xpath, context)
           evaluates the xpath expression on the modelNode and returns the selected nodes as an array.
 function getNumber(modelNode, xpath, context)
           evaluates the xpath expression on the modelNode and returns the first selected node converted to a number.
 function getText(modelNode, xpath, context)
           evaluates the xpath expression on the modelNode and returns the first selected node converted to a string.

Method Detail

getBoolean

function getBoolean(modelNode, xpath, context)
evaluates the xpath expression on the modelNode and returns the first selected node converted to a boolean value. The context can provide additional information, like local and global variables.



getNode

function getNode(modelNode, xpath, context)
evaluates the xpath expression on the modelNode and returns the first selected node. The context can provide additional information, like local and global variables. Returns null if no node was found.



getNodeSafe

function getNodeSafe(modelNode, xpath, context)
same as getNode but throws an exception when no node was found.



getNodes

function getNodes(modelNode, xpath, context)
evaluates the xpath expression on the modelNode and returns the selected nodes as an array. The context can provide additional information, like local and global variables.



getNumber

function getNumber(modelNode, xpath, context)
evaluates the xpath expression on the modelNode and returns the first selected node converted to a number. The context can provide additional information, like local and global variables.



getText

function getText(modelNode, xpath, context)
evaluates the xpath expression on the modelNode and returns the first selected node converted to a string. The context can provide additional information, like local and global variables.