public static final class Rule.Builder extends Object implements Serializable, ModelBuilder, RuleContract
Rule
instances. Enforces the constraints of the RuleContract
.Modifier and Type | Method and Description |
---|---|
Rule |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Rule.Builder |
create() |
static Rule.Builder |
create(RuleContract contract) |
String |
getDescription()
The description of the rule.
|
String |
getDocTypeName()
The documentTypeName of the rule.
|
org.joda.time.DateTime |
getFromDate()
The ending date of the rule.
|
String |
getId()
The unique identifier for an object.
|
String |
getName()
Unique Name for the Rule.
|
String |
getPreviousRuleId()
Unique id for the previous version of this Rule.
|
RuleExpression.Builder |
getRuleExpressionDef()
Expression for rule to evaluate.
|
List<RuleExtension.Builder> |
getRuleExtensions()
List of rule extensions associated with the Rule
|
List<RuleResponsibility.Builder> |
getRuleResponsibilities()
List of rule responsibilities associated with the Rule
|
RuleTemplate.Builder |
getRuleTemplate()
Unique Id for Template of Rule.
|
String |
getRuleTemplateName()
Template Name of the Rule.
|
org.joda.time.DateTime |
getToDate()
The ending date of the rule.
|
boolean |
isActive()
The active indicator for the rule.
|
boolean |
isForceAction()
Shows if rule will force its action.
|
void |
setActive(boolean active) |
void |
setDescription(String description) |
void |
setDocTypeName(String docTypeName) |
void |
setForceAction(boolean forceAction) |
void |
setFromDate(org.joda.time.DateTime fromDate) |
void |
setId(String id) |
void |
setName(String name) |
void |
setPreviousRuleId(String previousRuleId) |
void |
setRuleExpressionDef(RuleExpression.Builder ruleExpressionDef) |
void |
setRuleExtensions(List<RuleExtension.Builder> ruleExtensions) |
void |
setRuleResponsibilities(List<RuleResponsibility.Builder> ruleResponsibilities) |
void |
setRuleTemplate(RuleTemplate.Builder ruleTemplate) |
void |
setRuleTemplateName(String ruleTemplateName) |
void |
setToDate(org.joda.time.DateTime toDate) |
public static Rule.Builder create()
public static Rule.Builder create(RuleContract contract)
public Rule build()
ModelBuilder
build
in interface ModelBuilder
public String getId()
Identifiable
getId
in interface Identifiable
public String getName()
RuleContract
This is the unique name of the Rule
getName
in interface RuleContract
public RuleTemplate.Builder getRuleTemplate()
RuleContract
This is the unique Id of the rule template of the rule
getRuleTemplate
in interface RuleContract
public boolean isActive()
RuleContract
isActive
in interface RuleContract
public String getDescription()
RuleContract
getDescription
in interface RuleContract
public String getDocTypeName()
RuleContract
getDocTypeName
in interface RuleContract
public org.joda.time.DateTime getFromDate()
RuleContract
This is the date from which the rule stops being be used
getFromDate
in interface RuleContract
public org.joda.time.DateTime getToDate()
RuleContract
This is the date from which the rule starts to be used
getToDate
in interface RuleContract
public boolean isForceAction()
RuleContract
isForceAction
in interface RuleContract
public String getPreviousRuleId()
RuleContract
This is the unique id value of the previous version of this Rule.
getPreviousRuleId
in interface RuleContract
public List<RuleResponsibility.Builder> getRuleResponsibilities()
RuleContract
getRuleResponsibilities
in interface RuleContract
public List<RuleExtension.Builder> getRuleExtensions()
RuleContract
getRuleExtensions
in interface RuleContract
public String getRuleTemplateName()
RuleContract
This is the name of the rule template for the rule
getRuleTemplateName
in interface RuleContract
public RuleExpression.Builder getRuleExpressionDef()
RuleContract
This is expression definition of the rule
getRuleExpressionDef
in interface RuleContract
public void setRuleTemplate(RuleTemplate.Builder ruleTemplate)
public void setActive(boolean active)
public void setDescription(String description)
public void setDocTypeName(String docTypeName)
public void setFromDate(org.joda.time.DateTime fromDate)
public void setToDate(org.joda.time.DateTime toDate)
public void setForceAction(boolean forceAction)
public void setPreviousRuleId(String previousRuleId)
public void setRuleResponsibilities(List<RuleResponsibility.Builder> ruleResponsibilities)
public void setRuleExtensions(List<RuleExtension.Builder> ruleExtensions)
public void setRuleTemplateName(String ruleTemplateName)
public void setRuleExpressionDef(RuleExpression.Builder ruleExpressionDef)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.