Package org.openhab.core.automation.util
Class RuleBuilder
java.lang.Object
org.openhab.core.automation.util.RuleBuilder
This class allows the easy construction of a 
Rule instance using the builder pattern.- Author:
- Kai Kreuzer - Initial contribution
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()static RuleBuilderstatic RuleBuilderstatic RuleBuildercreate(RuleTemplate template, String uid, @Nullable String name, Configuration configuration, Visibility visibility) withActions(@Nullable List<? extends Action> actions) withActions(@Nullable Action... actions) withConditions(@Nullable List<? extends Condition> conditions) withConditions(@Nullable Condition... conditions) withConfiguration(@Nullable Configuration ruleConfiguration) withConfigurationDescriptions(@Nullable List<ConfigDescriptionParameter> configDescs) withDescription(@Nullable String description) withTemplateState(Rule.TemplateState templateState) withTemplateUID(@Nullable String uid) withTriggers(@Nullable List<? extends Trigger> triggers) withTriggers(@Nullable Trigger... triggers) withVisibility(@Nullable Visibility visibility) 
- 
Constructor Details- 
RuleBuilder
 
- 
- 
Method Details- 
create
- 
create
- 
createpublic static RuleBuilder create(RuleTemplate template, String uid, @Nullable String name, Configuration configuration, Visibility visibility) 
- 
withName
- 
withDescription
- 
withTemplateUID
- 
withTemplateState
- 
withVisibility
- 
withTriggers
- 
withTriggers
- 
withConditions
- 
withConditions
- 
withActions
- 
withActions
- 
withTags
- 
withTags
- 
withConfiguration
- 
withConfigurationDescriptionspublic RuleBuilder withConfigurationDescriptions(@Nullable List<ConfigDescriptionParameter> configDescs) 
- 
build
 
-