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

java.lang.Object
  extended by org.kuali.rice.krms.api.repository.agenda.AgendaTreeDefinition.Builder
All Implemented Interfaces:
Serializable, ModelBuilder
Enclosing class:
AgendaTreeDefinition

public static class AgendaTreeDefinition.Builder
extends Object
implements ModelBuilder, Serializable

This builder is used to construct instances of AgendaTreeDefinition.

See Also:
Serialized Form

Method Summary
 void addRuleEntry(AgendaTreeRuleEntry ruleEntry)
          Adds the given AgendaTreeRuleEntry to the entries.
 void addSubAgendaEntry(AgendaTreeSubAgendaEntry subAgendaEntry)
          Adds the given AgendaTreeSubAgendaEntry to the entries.
 AgendaTreeDefinition build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static AgendaTreeDefinition.Builder create()
          Create a new Builder
 String getAgendaId()
          Returns the agendaId
 List<AgendaTreeEntryDefinitionContract> getEntries()
          Returns the list of AgendaTreeEntryDefinitionContracts entries
 void setAgendaId(String agendaId)
          Sets the agendaId to the given parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static AgendaTreeDefinition.Builder create()
Create a new Builder

Returns:
a new Builder

setAgendaId

public void setAgendaId(String agendaId)
Sets the agendaId to the given parameter

Parameters:
agendaId - to set the apendaId value to, must not be null or blank

addRuleEntry

public void addRuleEntry(AgendaTreeRuleEntry ruleEntry)
Adds the given AgendaTreeRuleEntry to the entries.

Parameters:
ruleEntry - AgendaTreeRuleEntry to be added to the entries, must not be null

addSubAgendaEntry

public void addSubAgendaEntry(AgendaTreeSubAgendaEntry subAgendaEntry)
Adds the given AgendaTreeSubAgendaEntry to the entries.

Parameters:
subAgendaEntry - AgendaTreeSubAgendaEntry to add to the entries, must not be null

getAgendaId

public String getAgendaId()
Returns the agendaId

Returns:
agendaId

getEntries

public List<AgendaTreeEntryDefinitionContract> getEntries()
Returns the list of AgendaTreeEntryDefinitionContracts entries

Returns:
List<AgendaTreeEntryDefinitionContract> of entries

build

public AgendaTreeDefinition build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.