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

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

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

This builder is used to construct instances of AgendaTreeSubAgendaEntry.

See Also:
Serialized Form

Method Summary
 AgendaTreeSubAgendaEntry build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static AgendaTreeSubAgendaEntry.Builder create(String agendaItemId, String subAgendaId)
          Create a builder using the given values
 String getAgendaItemId()
          Returns the agendaItemId
 String getSubAgendaId()
          Returns the subAgendaId
 void setAgendaItemId(String agendaItemId)
          Sets the agendaItemId of the builder, cannot be null
 void setSubAgendaId(String subAgendaId)
          Sets the subAgendaId of the builder, cannot be null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

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

Parameters:
agendaItemId - to set the agendaItemId value to, must not be null
subAgendaId - to set the subAgendaId value to, must not be null
Returns:
Builder with the given values set

getAgendaItemId

public String getAgendaItemId()
Returns the agendaItemId

Returns:
the agendaItemId of the builder

getSubAgendaId

public String getSubAgendaId()
Returns the subAgendaId

Returns:
the subAgendaId of the builder

setAgendaItemId

public void setAgendaItemId(String agendaItemId)
Sets the agendaItemId of the builder, cannot be null

Parameters:
agendaItemId - to set the value of the agendaItemId to, must not be null
Throws:
IllegalArgumentException - if the agendaItemId is null

setSubAgendaId

public void setSubAgendaId(String subAgendaId)
Sets the subAgendaId of the builder, cannot be null

Parameters:
subAgendaId - to set the subAgendaId value to, must not be null
Throws:
IllegalArgumentException - if the subAgendaId is null

build

public AgendaTreeSubAgendaEntry 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-2013 The Kuali Foundation. All Rights Reserved.