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()
ModelBuilderbuild in interface ModelBuilderpublic String getId()
IdentifiablegetId in interface Identifiablepublic String getName()
RuleContractThis is the unique name of the Rule
getName in interface RuleContractpublic RuleTemplate.Builder getRuleTemplate()
RuleContractThis is the unique Id of the rule template of the rule
getRuleTemplate in interface RuleContractpublic boolean isActive()
RuleContractisActive in interface RuleContractpublic String getDescription()
RuleContractgetDescription in interface RuleContractpublic String getDocTypeName()
RuleContractgetDocTypeName in interface RuleContractpublic org.joda.time.DateTime getFromDate()
RuleContractThis is the date from which the rule stops being be used
getFromDate in interface RuleContractpublic org.joda.time.DateTime getToDate()
RuleContractThis is the date from which the rule starts to be used
getToDate in interface RuleContractpublic boolean isForceAction()
RuleContractisForceAction in interface RuleContractpublic String getPreviousRuleId()
RuleContractThis is the unique id value of the previous version of this Rule.
getPreviousRuleId in interface RuleContractpublic List<RuleResponsibility.Builder> getRuleResponsibilities()
RuleContractgetRuleResponsibilities in interface RuleContractpublic List<RuleExtension.Builder> getRuleExtensions()
RuleContractgetRuleExtensions in interface RuleContractpublic String getRuleTemplateName()
RuleContractThis is the name of the rule template for the rule
getRuleTemplateName in interface RuleContractpublic RuleExpression.Builder getRuleExpressionDef()
RuleContractThis is expression definition of the rule
getRuleExpressionDef in interface RuleContractpublic 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.