org.drools.lang.api
Interface ConditionalBranchDescrBuilder<P extends DescrBuilder<?,?>>

All Superinterfaces:
DescrBuilder<P,ConditionalBranchDescr>
All Known Implementing Classes:
ConditionalBranchDescrBuilderImpl

public interface ConditionalBranchDescrBuilder<P extends DescrBuilder<?,?>>
extends DescrBuilder<P,ConditionalBranchDescr>


Method Summary
 EvalDescrBuilder<ConditionalBranchDescrBuilder<P>> condition()
          Defines the condition for this conditional branch
 NamedConsequenceDescrBuilder<ConditionalBranchDescrBuilder<P>> consequence()
          Defines a Consequence activated when the condition is evaluated to true
 ConditionalBranchDescrBuilder<P> otherwise()
          Defines a else branch used when the condition is evaluated to false
 
Methods inherited from interface org.drools.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 

Method Detail

condition

EvalDescrBuilder<ConditionalBranchDescrBuilder<P>> condition()
Defines the condition for this conditional branch

Returns:
a descriptor builder for the EVAL CE

consequence

NamedConsequenceDescrBuilder<ConditionalBranchDescrBuilder<P>> consequence()
Defines a Consequence activated when the condition is evaluated to true

Returns:
a descriptor builder for the Named Consequence CE

otherwise

ConditionalBranchDescrBuilder<P> otherwise()
Defines a else branch used when the condition is evaluated to false

Returns:
a descriptor builder for the else Conditional Branch CE


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.