edu.internet2.middleware.grouper.rules
Class RuleThen

java.lang.Object
  extended by edu.internet2.middleware.grouper.rules.RuleThen

public class RuleThen
extends Object

rule then part

Author:
mchyzer

Constructor Summary
RuleThen()
           
RuleThen(String thenEl1, String thenEnum1, String _thenEnumArg0, String _thenEnumArg1, String _thenEnumArg2)
           
 
Method Summary
 void fireRule(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition)
          fire this rule
 String getThenEl()
          if it is an el, put that here
 String getThenEnum()
          if it is an enum, put that here
 String getThenEnumArg0()
          arg0 to the then clause
 String getThenEnumArg1()
           
 String getThenEnumArg2()
          arg2 to the then clause
 void setThenEl(String thenEl1)
          if it is an el, put that here
 void setThenEnum(String thenEnum1)
          if it is an enum, put that here
 void setThenEnumArg0(String theThenEnumArg0)
          arg0 to the then clause
 void setThenEnumArg1(String theThenEnumArg1)
          then enum arg1
 void setThenEnumArg2(String _thenEnumArg2)
          arg2 to the then clause
 RuleThenEnum thenEnum()
          convert the type to an enum
 String toString()
           
 String validate(RuleDefinition ruleDefinition)
          validate this
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleThen

public RuleThen()

RuleThen

public RuleThen(String thenEl1,
                String thenEnum1,
                String _thenEnumArg0,
                String _thenEnumArg1,
                String _thenEnumArg2)
Parameters:
thenEl1 -
thenEnum1 -
_thenEnumArg0 -
_thenEnumArg1 -
_thenEnumArg2 -
Method Detail

getThenEnumArg0

public String getThenEnumArg0()
arg0 to the then clause

Returns:
arg0

setThenEnumArg0

public void setThenEnumArg0(String theThenEnumArg0)
arg0 to the then clause

Parameters:
theThenEnumArg0 -

getThenEnumArg1

public String getThenEnumArg1()
Returns:
arg1

setThenEnumArg1

public void setThenEnumArg1(String theThenEnumArg1)
then enum arg1

Parameters:
theThenEnumArg1 -

getThenEnumArg2

public String getThenEnumArg2()
arg2 to the then clause

Returns:
arg2 to the then clause

setThenEnumArg2

public void setThenEnumArg2(String _thenEnumArg2)
arg2 to the then clause

Parameters:
_thenEnumArg2 -

getThenEl

public String getThenEl()
if it is an el, put that here

Returns:
el

setThenEl

public void setThenEl(String thenEl1)
if it is an el, put that here

Parameters:
thenEl1 -

getThenEnum

public String getThenEnum()
if it is an enum, put that here

Returns:
enum

setThenEnum

public void setThenEnum(String thenEnum1)
if it is an enum, put that here

Parameters:
thenEnum1 -

thenEnum

public RuleThenEnum thenEnum()
convert the type to an enum

Returns:
rule check type

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

validate

public String validate(RuleDefinition ruleDefinition)
validate this

Parameters:
ruleDefinition -
Returns:
error or null if ok

fireRule

public void fireRule(RuleDefinition ruleDefinition,
                     RuleEngine ruleEngine,
                     RulesBean rulesBean,
                     StringBuilder logDataForThisDefinition)
fire this rule

Parameters:
ruleDefinition -
ruleEngine -
rulesBean -
logDataForThisDefinition - if logger if logging, else not