adapforms.runtime.state
Class XPathManager

java.lang.Object
  extended by adapforms.runtime.state.XPathManager

public class XPathManager
extends java.lang.Object

Handles the evaulation of XPath semantic rules.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
XPathManager(StateTree state)
          Create a new manager managing this instance
 
Method Summary
static javax.xml.xpath.XPath getXPathEngine()
          Obtain the framework-wide singleton reference to the selected XPath engine.
 void reevaluateXPaths()
          Reevaluate all XPath boolean expressions in the state tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathManager

XPathManager(StateTree state)
Create a new manager managing this instance

Parameters:
state -
Method Detail

reevaluateXPaths

public void reevaluateXPaths()
Reevaluate all XPath boolean expressions in the state tree. If the value of one expression changes, the entire expression will be rerun until the state stabilizes, and the changes thus have propagated.


getXPathEngine

public static javax.xml.xpath.XPath getXPathEngine()
                                            throws FormRuntimeException
Obtain the framework-wide singleton reference to the selected XPath engine.

Throws:
FormRuntimeException - If the initialization fails