|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.krms.api.repository.proposition.PropositionDefinition.Builder
public static class PropositionDefinition.Builder
This builder is used to construct instances of KRMS Proposition. It enforces the constraints of the PropositionDefinitionContract
.
Method Summary | |
---|---|
PropositionDefinition |
build()
Builds an instance of a Proposition based on the current state of the builder. |
PropositionDefinition.Builder |
compoundComponents(List<PropositionDefinition.Builder> components)
Set the value of the components to the given value. |
PropositionDefinition.Builder |
compoundOpCode(String opCode)
Set the value of the opCode to the given value. |
static PropositionDefinition.Builder |
create(PropositionDefinitionContract contract)
Creates a builder by populating it with data from the given PropositionDefinitionContract . |
static PropositionDefinition.Builder |
create(String propId,
String propTypeCode,
String ruleId,
String typeId,
List<PropositionParameter.Builder> parameters)
Create a Builder with the given values |
List<PropositionDefinition.Builder> |
getCompoundComponents()
|
String |
getCompoundOpCode()
|
String |
getDescription()
|
String |
getId()
|
List<PropositionParameter.Builder> |
getParameters()
|
String |
getPropositionTypeCode()
|
String |
getRuleId()
|
String |
getTypeId()
|
Long |
getVersionNumber()
|
void |
setCompoundComponents(List<PropositionDefinition.Builder> components)
Sets the value of the components on this builder to the given value. |
void |
setCompoundOpCode(String opCode)
Sets the value of the opCode on this builder to the given value. |
void |
setDescription(String description)
Sets the value of the description on this builder to the given value. |
void |
setId(String propId)
Sets the value of the propId on this builder to the given value. |
void |
setParameters(List<PropositionParameter.Builder> parameters)
Sets the value of the parameters on this builder to the given value. |
void |
setPropositionTypeCode(String propTypeCode)
Sets the value of the propTypeCode on this builder to the given value. |
void |
setRule(RuleDefinition.Builder rule)
Sets the value of the rule on this builder to the given value. |
void |
setRuleId(String ruleId)
Sets the value of the ruleId on this builder to the given value. |
void |
setTypeId(String typeId)
Sets the value of the typeId on this builder to the given value. |
void |
setVersionNumber(Long versionNumber)
Sets the value of the versionNumber on this builder to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public PropositionDefinition.Builder compoundOpCode(String opCode)
opCode
- the opCode value to set
public PropositionDefinition.Builder compoundComponents(List<PropositionDefinition.Builder> components)
components
- the components value to set
public static PropositionDefinition.Builder create(String propId, String propTypeCode, String ruleId, String typeId, List<PropositionParameter.Builder> parameters)
propId
- the propId value to setpropTypeCode
- the propTypeCode value to setruleId
- the ruleId value to settypeId
- the typeId value to setparameters
- the parameters value to set
public static PropositionDefinition.Builder create(PropositionDefinitionContract contract)
PropositionDefinitionContract
.
contract
- the contract from which to populate this builder
public void setId(String propId)
propId
- the propId value to set
IllegalArgumentException
- if the propId is null or blankpublic void setDescription(String description)
description
- the description value to setpublic void setTypeId(String typeId)
typeId
- the typeId value to setpublic void setRuleId(String ruleId)
ruleId
- the ruleId value to setpublic void setRule(RuleDefinition.Builder rule)
rule
- the rule value to setpublic void setPropositionTypeCode(String propTypeCode)
propTypeCode
- the propTypeCode value to set
IllegalArgumentException
- if the propTypeCode is null, blank or invalidpublic void setParameters(List<PropositionParameter.Builder> parameters)
parameters
- the parameters value to setpublic void setCompoundOpCode(String opCode)
opCode
- the opCode value to set
IllegalArgumentException
- if the opCode invalidpublic void setCompoundComponents(List<PropositionDefinition.Builder> components)
components
- the components value to setpublic void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber value to setpublic String getId()
getId
in interface Identifiable
public String getDescription()
getDescription
in interface PropositionDefinitionContract
public String getRuleId()
getRuleId
in interface PropositionDefinitionContract
public String getTypeId()
getTypeId
in interface PropositionDefinitionContract
public String getPropositionTypeCode()
getPropositionTypeCode
in interface PropositionDefinitionContract
public List<PropositionParameter.Builder> getParameters()
getParameters
in interface PropositionDefinitionContract
public String getCompoundOpCode()
getCompoundOpCode
in interface PropositionDefinitionContract
public List<PropositionDefinition.Builder> getCompoundComponents()
getCompoundComponents
in interface PropositionDefinitionContract
public Long getVersionNumber()
getVersionNumber
in interface Versioned
public PropositionDefinition build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |