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)
ConfigurationRuleBuilderPerformParameter with the given name.where in interface ConfigurationRuleBuilderOtherwisewhere in interface ConfigurationRuleBuilderPerformpublic ConfigurationRuleBuilder when(Condition condition)
ConfigurationRuleBuilderCustomwhen in interface ConfigurationRuleBuilderCustompublic ConfigurationRuleBuilderWhen when(Condition condition, Condition... conditions)
ConfigurationRuleBuilderCustomConditions of this Rule instance. This creates an implicit And between all
provided Condition instances.when in interface ConfigurationRuleBuilderCustompublic ConfigurationRuleBuilder perform(Operation operation)
ConfigurationRuleBuilderCustomperform in interface ConfigurationRuleBuilderCustomperform in interface ConfigurationRuleBuilderWhenpublic ConfigurationRuleBuilderPerform perform(Operation operation, Operation... operations)
ConfigurationRuleBuilderCustomperform in interface ConfigurationRuleBuilderCustomperform in interface ConfigurationRuleBuilderWhenpublic ConfigurationRuleBuilder otherwise(Operation operation)
ConfigurationRuleBuilderWhenotherwise in interface ConfigurationRuleBuilderPerformotherwise in interface ConfigurationRuleBuilderWhenpublic ConfigurationRuleBuilderOtherwise otherwise(Operation operation, Operation... operations)
ConfigurationRuleBuilderWhenotherwise in interface ConfigurationRuleBuilderPerformotherwise in interface ConfigurationRuleBuilderWhenpublic ConfigurationRuleBuilder withPriority(int priority)
ConfigurationRuleBuilderPerformRule 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)
ConfigurationRuleBuilderPerformRule. 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.public void perform(Rewrite event, EvaluationContext context)
OperationOperation.public Set<String> getRequiredParameterNames()
ParameterizedParameter names for this Parameterized instance.getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
ParameterizedParameterized instance with the global ParameterStore.setParameterStore in interface Parameterizedpublic ConfigurationRuleBuilderWithMetadata withMetadata(Object key, Object value)
ConfigurationRuleBuilderWithMetadataRule. Meta-data does not directly affect a
Rule's behavior, but can be used to provide hints to custom extensions.withMetadata in interface ConfigurationRuleBuilderWithMetadataCopyright © 2019 OCPsoft. All rights reserved.