public class ConfigurationRuleBuilder extends ConfigurationBuilder implements ParameterizedRule, ConfigurationRuleBuilderCustom, ConfigurationRuleBuilderWhen, ConfigurationRuleBuilderPerform, ConfigurationRuleBuilderOtherwise, ConfigurationRuleBuilderWithId, ConfigurationRuleBuilderWithPriority, ConfigurationRuleBuilderWithPriorityAndId
Rule configuration.begin, toStringpublic ConfigurationRuleBuilder addRule(Rule rule)
ConfigurationBuilderRule.addRule in interface ConfigurationBuilderRootaddRule in class ConfigurationBuilderpublic ConfigurationRuleBuilderCustom addRule()
ConfigurationBuilderRule.addRule in interface ConfigurationBuilderRootaddRule in class ConfigurationBuilderpublic ConfigurationRuleParameterBuilder where(String name)
Parameter with the given name.where in interface ConfigurationRuleBuilderOtherwisewhere in interface ConfigurationRuleBuilderPerformpublic ConfigurationRuleBuilder when(Condition condition)
when in interface ConfigurationRuleBuilderCustompublic ConfigurationRuleBuilder perform(Operation operation)
perform in interface ConfigurationRuleBuilderCustomperform in interface ConfigurationRuleBuilderWhenpublic ConfigurationRuleBuilder otherwise(Operation operation)
otherwise in interface ConfigurationRuleBuilderPerformotherwise in interface ConfigurationRuleBuilderWhenpublic 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 ConfigurationRuleBuilderOtherwisewithPriority in interface ConfigurationRuleBuilderPerformwithPriority in interface ConfigurationRuleBuilderWithIdpublic ConfigurationRuleBuilder withId(String id)
Rule. This may be used in logging and for rule lookup purposes.withId in interface ConfigurationRuleBuilderOtherwisewithId in interface ConfigurationRuleBuilderPerformwithId in interface ConfigurationRuleBuilderWithPrioritypublic RuleBuilder getRuleBuilder()
RuleBuilder for the current Rule.public List<Rule> getRules()
ConfigurationRule instances defined by this ConfigurationgetRules in interface ConfigurationgetRules in class ConfigurationBuilderpublic List<RuleBuilder> getRuleBuilders()
getRuleBuilders in class ConfigurationBuilderpublic ParameterStore getParameterStore()
ParameterizedRuleParameterStore for this RulegetParameterStore in interface ParameterizedRulepublic boolean evaluate(Rewrite event, EvaluationContext context)
ConditionRewrite 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.