org.kuali.rice.krms.api.repository.agenda
Class AgendaTreeRuleEntry.Builder

java.lang.Object
  extended by 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:
Serialized Form

Method Summary
 AgendaTreeRuleEntry build()
          Build the AgendaTreeRuleEntry with the builders values
static AgendaTreeRuleEntry.Builder create(String agendaItemId, String ruleId)
          Create a builder using the given values
 String getAgendaItemId()
          Returns the agendaItemId
 AgendaTreeDefinition.Builder getIfFalse()
          Returns the AgendaTreeDefinition.Builder for ifFalse.
 AgendaTreeDefinition.Builder getIfTrue()
          Returns the AgendaTreeDefinition.Builder for ifTrue.
 String getRuleId()
          Returns the rule id.
 void setAgendaItemId(String agendaItemId)
          Sets the agendaItemId, cannot be null or blank.
 void setIfFalse(AgendaTreeDefinition.Builder ifFalse)
          Set the ifFalse AgendaTreeDefinition.Builder
 void setIfTrue(AgendaTreeDefinition.Builder ifTrue)
          Set the ifTrue AgendaTreeDefinition.Builder
 void setRuleId(String ruleId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectComplete
equals, hashCode
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Method Detail

create

public static AgendaTreeRuleEntry.Builder create(String agendaItemId,
                                                 String ruleId)
Create a builder using the given values

Parameters:
agendaItemId - the agendaItemId value to set, must not be null or blank
ruleId - the propId value to set, must not be null or blank
Returns:
Builder with the given values set

getAgendaItemId

public String getAgendaItemId()
Description copied from interface: AgendaTreeEntryDefinitionContract
Returns the agendaItemId

Specified by:
getAgendaItemId in interface AgendaTreeEntryDefinitionContract
Returns:
the agendaItemId

getRuleId

public String getRuleId()
Returns the rule id.

Returns:
ruleId of the AgendaTreeRuleEntry

getIfTrue

public AgendaTreeDefinition.Builder getIfTrue()
Returns the AgendaTreeDefinition.Builder for ifTrue.

Returns:
AgendaTreeDefinition.Builder for ifTrue

getIfFalse

public AgendaTreeDefinition.Builder getIfFalse()
Returns the AgendaTreeDefinition.Builder for ifFalse.

Returns:
AgendaTreeDefinition.Builder for ifFalse

setAgendaItemId

public void setAgendaItemId(String agendaItemId)
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

public void setRuleId(String ruleId)
Parameters:
ruleId - the propId value to set, must not be null or blank
Throws:
IllegalArgumentException - if ruleId is null or blank.

setIfTrue

public void setIfTrue(AgendaTreeDefinition.Builder ifTrue)
Set the ifTrue AgendaTreeDefinition.Builder

Parameters:
ifTrue - AgendaTreeDefinition.Builder for ifTrue

setIfFalse

public void setIfFalse(AgendaTreeDefinition.Builder ifFalse)
Set the ifFalse AgendaTreeDefinition.Builder

Parameters:
ifFalse - AgendaTreeDefinition.Builder for ifFalse

build

public AgendaTreeRuleEntry build()
Build the AgendaTreeRuleEntry with the builders values

Returns:
AgendaTreeRuleEntry with the builders values


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.