com.jscape.util.workflow.statements
Class CompoundStatement

java.lang.Object
  extended by com.jscape.util.workflow.statements.CompoundStatement
All Implemented Interfaces:
Statement, java.io.Serializable

public final class CompoundStatement
extends java.lang.Object
implements Statement

Compound or "block" statement. Contains several statements which are executed at once.

Author:
Alex
See Also:
Serialized Form

Constructor Summary
CompoundStatement()
          Creates a new statement instance.
CompoundStatement(Statement[] statements)
          Creates a new statement instance.
 
Method Summary
 void execute(Context context)
          Executes statement on the specified context.
 Statement[] getStatements()
          Returns inner statements.
 void setStatements(Statement[] value)
          Sets inner statements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundStatement

public CompoundStatement(Statement[] statements)
Creates a new statement instance.

Parameters:
statements - inner statements

CompoundStatement

public CompoundStatement()
Creates a new statement instance.

Method Detail

getStatements

public Statement[] getStatements()
Returns inner statements.

Returns:
inner statements

setStatements

public void setStatements(Statement[] value)
Sets inner statements.

Parameters:
value - inner statements

execute

public void execute(Context context)
Description copied from interface: Statement
Executes statement on the specified context.

Specified by:
execute in interface Statement
Parameters:
context - workflow context.


Copyright © 2007 JSCAPE Corp. All Rights Reserved.