public class ConfigurationRuleBuilder extends ConfigurationBuilder implements ParameterizedRule, ConfigurationRuleBuilderCustom, ConfigurationRuleBuilderWhen, ConfigurationRuleBuilderPerform, ConfigurationRuleBuilderOtherwise, ConfigurationRuleBuilderWithId, ConfigurationRuleBuilderWithPriority, ConfigurationRuleBuilderWithPriorityAndId
Rule
configuration.begin, toString
public ConfigurationRuleBuilder addRule(Rule rule)
ConfigurationBuilder
Rule
.addRule
in interface ConfigurationBuilderRoot
addRule
in class ConfigurationBuilder
public ConfigurationRuleBuilderCustom addRule()
ConfigurationBuilder
Rule
.addRule
in interface ConfigurationBuilderRoot
addRule
in class ConfigurationBuilder
public ConfigurationRuleParameterBuilder where(String name)
Parameter
with the given name.where
in interface ConfigurationRuleBuilderOtherwise
where
in interface ConfigurationRuleBuilderPerform
public ConfigurationRuleBuilder when(Condition condition)
when
in interface ConfigurationRuleBuilderCustom
public ConfigurationRuleBuilder perform(Operation operation)
perform
in interface ConfigurationRuleBuilderCustom
perform
in interface ConfigurationRuleBuilderWhen
public ConfigurationRuleBuilder otherwise(Operation operation)
otherwise
in interface ConfigurationRuleBuilderPerform
otherwise
in interface ConfigurationRuleBuilderWhen
public ConfigurationRuleBuilder withPriority(int priority)
Rule
instance. If #priority()
differs from the priority of the
ConfigurationProvider
from which this rule was returned, then relocate this rule to its new priority
position in the compiled rule set.withPriority
in interface ConfigurationRuleBuilderOtherwise
withPriority
in interface ConfigurationRuleBuilderPerform
withPriority
in interface ConfigurationRuleBuilderWithId
public ConfigurationRuleBuilder withId(String id)
Rule
. This may be used in logging and for rule lookup purposes.withId
in interface ConfigurationRuleBuilderOtherwise
withId
in interface ConfigurationRuleBuilderPerform
withId
in interface ConfigurationRuleBuilderWithPriority
public RuleBuilder getRuleBuilder()
RuleBuilder
for the current Rule
.public List<Rule> getRules()
Configuration
Rule
instances defined by this Configuration
getRules
in interface Configuration
getRules
in class ConfigurationBuilder
public List<RuleBuilder> getRuleBuilders()
getRuleBuilders
in class ConfigurationBuilder
public ParameterStore getParameterStore()
ParameterizedRule
ParameterStore
for this Rule
getParameterStore
in interface ParameterizedRule
public boolean evaluate(Rewrite event, EvaluationContext context)
Condition
Rewrite
event. If this condition does
not apply to the given event, it must return false. If the condition applies and is satisfied, return true.Copyright © 2014 OCPsoft. All Rights Reserved.