org.databene.benerator.engine.statement
Class IfStatement

java.lang.Object
  extended by org.databene.benerator.engine.statement.ConditionStatement
      extended by org.databene.benerator.engine.statement.IfStatement
All Implemented Interfaces:
Statement

public class IfStatement
extends ConditionStatement

CompositeStatement that executes it parts only if a condition is matched.

Created: 19.02.2010 09:13:30

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.engine.statement.ConditionStatement
condition
 
Constructor Summary
IfStatement(Expression<java.lang.Boolean> condition, java.util.List<Statement> thenBranch, java.util.List<Statement> elseBranch)
           
 
Method Summary
 void execute(BeneratorContext context)
           
 
Methods inherited from class org.databene.benerator.engine.statement.ConditionStatement
getCondidition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfStatement

public IfStatement(Expression<java.lang.Boolean> condition,
                   java.util.List<Statement> thenBranch,
                   java.util.List<Statement> elseBranch)
Method Detail

execute

public void execute(BeneratorContext context)


Copyright © 2010. All Rights Reserved.