Class AgendaTreeRuleEntry.Builder
java.lang.Object
org.kuali.rice.krms.api.repository.agenda.AgendaTreeRuleEntry.Builder
- All Implemented Interfaces:
Serializable,ModelObjectBasic,ModelObjectComplete,AgendaTreeEntryDefinitionContract
- Enclosing class:
AgendaTreeRuleEntry
public static class AgendaTreeRuleEntry.Builder
extends Object
implements AgendaTreeEntryDefinitionContract, Serializable
This builder is used to construct instances of AgendaTreeRuleEntry.
It enforces the constraints of the
AgendaTreeEntryDefinitionContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theAgendaTreeRuleEntrywith the builders valuesstatic AgendaTreeRuleEntry.BuilderCreate a builder using the given valuesReturns the agendaItemIdReturns the AgendaTreeDefinition.Builder for ifFalse.Returns the AgendaTreeDefinition.Builder for ifTrue.Returns the rule id.voidsetAgendaItemId(String agendaItemId) Sets the agendaItemId, cannot be null or blank.voidsetIfFalse(AgendaTreeDefinition.Builder ifFalse) Set the ifFalseAgendaTreeDefinition.BuildervoidSet the ifTrueAgendaTreeDefinition.BuildervoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toStringMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectComplete
equals, hashCode
-
Method Details
-
create
Create a builder using the given values- Parameters:
agendaItemId- the agendaItemId value to set, must not be null or blankruleId- the propId value to set, must not be null or blank- Returns:
- Builder with the given values set
-
getAgendaItemId
Description copied from interface:AgendaTreeEntryDefinitionContractReturns the agendaItemId- Specified by:
getAgendaItemIdin interfaceAgendaTreeEntryDefinitionContract- Returns:
- the agendaItemId
-
getRuleId
Returns the rule id.- Returns:
- ruleId of the AgendaTreeRuleEntry
-
getIfTrue
Returns the AgendaTreeDefinition.Builder for ifTrue.- Returns:
AgendaTreeDefinition.Builderfor ifTrue
-
getIfFalse
Returns the AgendaTreeDefinition.Builder for ifFalse.- Returns:
AgendaTreeDefinition.Builderfor ifFalse
-
setAgendaItemId
Sets the agendaItemId, cannot be null or blank.- Parameters:
agendaItemId- the agendaItemId value to set, must not be null or blank- Throws:
IllegalArgumentException- if agendaItemId is null or blank.
-
setRuleId
- Parameters:
ruleId- the propId value to set, must not be null or blank- Throws:
IllegalArgumentException- if ruleId is null or blank.
-
setIfTrue
Set the ifTrueAgendaTreeDefinition.Builder- Parameters:
ifTrue-AgendaTreeDefinition.Builderfor ifTrue
-
setIfFalse
Set the ifFalseAgendaTreeDefinition.Builder- Parameters:
ifFalse-AgendaTreeDefinition.Builderfor ifFalse
-
build
Build theAgendaTreeRuleEntrywith the builders values- Returns:
AgendaTreeRuleEntrywith the builders values
-