com.intel.gpe.clients.api.workflow
Class While

java.lang.Object
  extended by com.intel.gpe.clients.api.workflow.While
All Implemented Interfaces:
Action

public class While
extends java.lang.Object
implements Action

The loop construct. The loop condition is an XPath expression with boolean result.

Version:
$Id: While.java,v 1.3 2005/12/26 13:39:07 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
While(java.lang.String condition, Action action)
          Create the loop construct.
 
Method Summary
 void emitCode(Scope scope, org.w3c.dom.Element target)
          Emit the piece of code corresponding to the current action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

While

public While(java.lang.String condition,
             Action action)
Create the loop construct.

Parameters:
condition - the loop condition (XPath expression with boolean result)
action - the loop body
Method Detail

emitCode

public void emitCode(Scope scope,
                     org.w3c.dom.Element target)
              throws java.lang.Exception
Description copied from interface: Action
Emit the piece of code corresponding to the current action.

Specified by:
emitCode in interface Action
Parameters:
scope - The variable scope of the workflow
target - The XML DOM element to append the action code to
Throws:
java.lang.Exception - In a case of error


Copyright © 2008. All Rights Reserved.