|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.repository.RuleAttribute.Builder
public static class RuleAttribute.Builder
This builder is used to construct instances of RuleAttribute.
| Method Summary | |
|---|---|
RuleAttribute.Builder |
attributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
|
RuleAttribute |
build()
Builds an instance of a RuleAttribute based on the current state of the builder. |
static RuleAttribute.Builder |
create(RuleAttributeContract contract)
|
static RuleAttribute.Builder |
create(String id,
String ruleId,
String attributeDefinitionId,
String value)
Creates a builder from the given parameters. |
KrmsAttributeDefinition.Builder |
getAttributeDefinition()
This is the definition of the attribute |
String |
getAttributeDefinitionId()
This is the id of the definition of the attribute. |
String |
getId()
This is the ID for the RuleAttribute |
String |
getRuleId()
This is the id of the Rule to which the attribute applies |
String |
getValue()
This is the value of the attribute |
void |
setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
|
void |
setAttributeDefinitionId(String attributeDefinitionId)
|
void |
setId(String id)
Sets the value of the id on this builder to the given value. |
void |
setRuleId(String ruleId)
|
void |
setValue(String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public RuleAttribute.Builder attributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
public static RuleAttribute.Builder create(String id,
String ruleId,
String attributeDefinitionId,
String value)
id - the RuleAtribute idruleId - the Rule IdattributeDefinitionId - The attributeDefinitionIdvalue -
IllegalArgumentException - if the either the id, name or namespace is null or blankpublic static RuleAttribute.Builder create(RuleAttributeContract contract)
public void setId(String id)
id - the id value to set, must not be null or blank
IllegalArgumentException - if the id is null or blankpublic void setRuleId(String ruleId)
public void setAttributeDefinitionId(String attributeDefinitionId)
public void setValue(String value)
public void setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
public String getId()
RuleAttributeContractIt is a ID of a RuleAttribute
getId in interface RuleAttributeContractpublic String getRuleId()
RuleAttributeContractIt is a id of a Rule related to the attribute.
getRuleId in interface RuleAttributeContractpublic String getAttributeDefinitionId()
RuleAttributeContractIt identifies the attribute definition
getAttributeDefinitionId in interface RuleAttributeContractpublic String getValue()
RuleAttributeContract
getValue in interface RuleAttributeContractpublic KrmsAttributeDefinition.Builder getAttributeDefinition()
RuleAttributeContract
getAttributeDefinition in interface RuleAttributeContractpublic RuleAttribute build()
build in interface org.kuali.rice.core.api.mo.ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||