|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.api.repository.AgendaItem.Builder
public static class AgendaItem.Builder
This builder is used to construct instances of KRMS Repository AgendaItem. It enforces the constraints of the AgendaItemContract
.
Method Summary | |
---|---|
AgendaItem |
build()
Builds an instance of a AgendaItem based on the current state of the builder. |
static AgendaItem.Builder |
create(AgendaItemContract contract)
Creates a builder by populating it with data from the given AgendaItemContract . |
static AgendaItem.Builder |
create(String id,
String agendaId,
String priorItemId,
String entryCondition)
|
String |
getAgendaId()
This is the agenda ID for the Agenda associated with this Agenda Item |
String |
getEntryCondition()
This code identifies the condition (the result of the previous agenda item) that led to choosing this item in the tree structure. |
String |
getId()
This is the ID for the AgendaItem |
AgendaItem.Builder |
getNextAfter()
|
AgendaItem.Builder |
getNextFalse()
|
AgendaItem.Builder |
getNextTrue()
|
String |
getPriorItemId()
This is the id of the prior item in the tree of agenda items that make up the agenda. |
RuleDefinition.Builder |
getRule()
|
String |
getRuleId()
This is ID of the Rule associated with this AgendaItem. |
AgendaDefinition.Builder |
getSubAgenda()
|
String |
getSubAgendaId()
This is the KrmsType of the AgendaItem |
void |
setAgendaId(String agendaId)
This method ... |
void |
setEntryCondition(String EntryCondition)
This method ... |
void |
setid(String id)
Sets the value of the id on this builder to the given value. |
void |
setNextAfter(AgendaItem.Builder nextAfter)
|
void |
setNextFalse(AgendaItem.Builder nextFalse)
|
void |
setNextTrue(AgendaItem.Builder nextTrue)
|
void |
setPriorItemId(String priorItemId)
This method ... |
void |
setRule(RuleDefinition.Builder rule)
|
void |
setRuleId(String ruleId)
|
void |
setSubAgenda(AgendaDefinition.Builder subAgenda)
|
void |
setSubAgendaId(String subAgendaId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AgendaItem.Builder create(String id, String agendaId, String priorItemId, String entryCondition)
public static AgendaItem.Builder create(AgendaItemContract contract)
AgendaItemContract
.
contract
- the contract from which to populate this builder
public void setid(String id)
id
- the primary id. (may be null), must not be or blank.
This value is generated by the system. For new items (not yet persisted) this field is null. For existing items this field is the generated id.
IllegalArgumentException
- if the id is blankpublic void setAgendaId(String agendaId)
agendaId
- public void setPriorItemId(String priorItemId)
priorItemId
- - the item at the top level of the agenda tree
has a null ID, all other items in the tree have a priorItemIdpublic void setEntryCondition(String EntryCondition)
EntryCondition
- - required.public void setRuleId(String ruleId)
public void setSubAgendaId(String subAgendaId)
public void setRule(RuleDefinition.Builder rule)
public void setSubAgenda(AgendaDefinition.Builder subAgenda)
public void setNextTrue(AgendaItem.Builder nextTrue)
public void setNextFalse(AgendaItem.Builder nextFalse)
public void setNextAfter(AgendaItem.Builder nextAfter)
public String getId()
AgendaItemContract
It is a ID of a AgendaItem
getId
in interface AgendaItemContract
public String getAgendaId()
AgendaItemContract
It is the agenda ID for the Agenda object associated with this Agenda Item.
getAgendaId
in interface AgendaItemContract
public String getPriorItemId()
AgendaItemContract
priorItemId - the id of the prior item in the tree structure of agenda items
getPriorItemId
in interface AgendaItemContract
public String getEntryCondition()
AgendaItemContract
The entry condition of the AgendaItem
getEntryCondition
in interface AgendaItemContract
public String getRuleId()
AgendaItemContract
getRuleId
in interface AgendaItemContract
public String getSubAgendaId()
AgendaItemContract
getSubAgendaId
in interface AgendaItemContract
public RuleDefinition.Builder getRule()
getRule
in interface AgendaItemContract
public AgendaDefinition.Builder getSubAgenda()
getSubAgenda
in interface AgendaItemContract
public AgendaItem.Builder getNextTrue()
getNextTrue
in interface AgendaItemContract
public AgendaItem.Builder getNextFalse()
getNextFalse
in interface AgendaItemContract
public AgendaItem.Builder getNextAfter()
getNextAfter
in interface AgendaItemContract
public AgendaItem build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |