|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.repository.rule.RuleDefinition.Builder
public static class RuleDefinition.Builder
This builder is used to construct instances of KRMS Repository Rule. It enforces the constraints of the RuleDefinitionContract.
| Method Summary | |
|---|---|
RuleDefinition |
build()
Builds an instance of a Rule based on the current state of the builder. |
static RuleDefinition.Builder |
create(RuleDefinitionContract contract)
Creates a builder by populating it with data from the given RuleDefinitionContract. |
static RuleDefinition.Builder |
create(String ruleId,
String name,
String namespace,
String typeId,
String propId)
|
List<ActionDefinition.Builder> |
getActions()
This method returns a list of Actions associated with the Rule. |
Map<String,String> |
getAttributes()
This method returns a Map of attributes associated with the Rule. |
String |
getDescription()
This is the description of the Rule |
String |
getId()
The unique identifier for an object. |
String |
getName()
This is the name of the Rule |
String |
getNamespace()
This is the namespace of the Rule |
String |
getPropId()
This method returns the ID of the Proposition associated with the rule. |
PropositionDefinition.Builder |
getProposition()
This method returns the Proposition associated with the rule. |
String |
getTypeId()
This is the KrmsType of the Rule |
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setActions(List<ActionDefinition.Builder> actions)
|
void |
setAttributes(Map<String,String> attributes)
|
void |
setDescription(String description)
|
void |
setId(String ruleId)
Sets the value of the id on this builder to the given value. |
void |
setName(String name)
|
void |
setNamespace(String namespace)
|
void |
setPropId(String propId)
|
void |
setProposition(PropositionDefinition.Builder prop)
|
void |
setTypeId(String typeId)
|
void |
setVersionNumber(Long versionNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RuleDefinition.Builder create(String ruleId,
String name,
String namespace,
String typeId,
String propId)
public static RuleDefinition.Builder create(RuleDefinitionContract contract)
RuleDefinitionContract.
contract - the contract from which to populate this builder
public void setId(String ruleId)
id - the id value to set, must not be null or blank
IllegalArgumentException - if the id is null or blankpublic void setName(String name)
public void setDescription(String description)
public void setNamespace(String namespace)
public void setTypeId(String typeId)
public void setPropId(String propId)
public void setProposition(PropositionDefinition.Builder prop)
public void setActions(List<ActionDefinition.Builder> actions)
public void setAttributes(Map<String,String> attributes)
public void setVersionNumber(Long versionNumber)
public String getId()
Identifiable
getId in interface Identifiablepublic String getName()
RuleDefinitionContractname - the name of the Rule
getName in interface RuleDefinitionContractpublic String getDescription()
RuleDefinitionContractdescription - the description of the Rule
getDescription in interface RuleDefinitionContractpublic String getNamespace()
RuleDefinitionContractThe namespace of the Rule
getNamespace in interface RuleDefinitionContractpublic String getTypeId()
RuleDefinitionContract
getTypeId in interface RuleDefinitionContractpublic String getPropId()
RuleDefinitionContractEach Rule has exactly one Proposition associated with it.
getPropId in interface RuleDefinitionContractpublic PropositionDefinition.Builder getProposition()
RuleDefinitionContractEach Rule has exactly one Proposition associated with it.
getProposition in interface RuleDefinitionContractpublic List<ActionDefinition.Builder> getActions()
RuleDefinitionContractA Rule may have zero or more Actions associated with it.
getActions in interface RuleDefinitionContractpublic Map<String,String> getAttributes()
RuleDefinitionContract
getAttributes in interface RuleDefinitionContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic RuleDefinition build()
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||