public static class PropositionParameter.Builder extends Object implements PropositionParameterContract, ModelBuilder, Serializable
PropositionParameterContract.| Modifier and Type | Method and Description |
|---|---|
PropositionParameter |
build()
Builds an instance of a PropositionParameter based on the current state of the builder.
|
static PropositionParameter.Builder |
create(PropositionParameterContract contract)
Creates a builder by populating it with data from the given
PropositionParameterContract. |
static PropositionParameter.Builder |
create(String id,
String propId,
String value,
String parameterType,
Integer sequenceNumber)
Create a builder using the given values
|
String |
getId()
The unique identifier for an object.
|
String |
getParameterType()
Returns the type of the parameter.
|
String |
getPropId()
Returns the Id for the parent proposition.
|
Integer |
getSequenceNumber()
Returns the sequence number of the proposition parameter.
|
String |
getValue()
Returns the value of the proposition parameter
|
Long |
getVersionNumber()
Returns the version number for this object.
|
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setParameterType(String parameterType)
Sets the value of the parameterType on this builder to the given value.
|
void |
setPropId(String propId)
Sets the value of the propId on this builder to the given value.
|
void |
setProposition(PropositionDefinition.Builder proposition)
Sets the value of the proposition on this builder to the given value.
|
void |
setSequenceNumber(Integer sequenceNumber)
Sets the value of the sequenceNumber on this builder to the given value.
|
void |
setValue(String value)
Sets the value of the value on this builder to the given value.
|
void |
setVersionNumber(Long versionNumber)
Sets the value of the versionNumber on this builder to the given value.
|
public static PropositionParameter.Builder create(String id, String propId, String value, String parameterType, Integer sequenceNumber)
id - the id value to set, must not be null or blankpropId - the propId value to set, must not be null or blankvalue - the value value to set, must not be null or blankparameterType - the value parameterType to set, must not be null or blanksequenceNumber - the value sequenceNumber to set, must not be null or blankpublic static PropositionParameter.Builder create(PropositionParameterContract contract)
PropositionParameterContract.contract - the contract from which to populate this builderpublic void setId(String id)
id - the id value to set, must not be null or blankIllegalArgumentException - if the id is null or blankpublic void setPropId(String propId)
propId - the propId value to set, must not be null or blankIllegalArgumentException - if the propId is null or blankpublic void setValue(String value)
value - the value value to set, may be null, otherwise must contain non-whitespaceIllegalArgumentException - if the value is all whitespace characterspublic void setParameterType(String parameterType)
parameterType - the value parameterType to set, must not be null or blankIllegalArgumentException - if the parameterType is null, blank, or invalidpublic void setSequenceNumber(Integer sequenceNumber)
sequenceNumber - the value sequenceNumber to set, must not be null or blankIllegalArgumentException - if the sequenceNumber is null, blank, or invalidpublic void setProposition(PropositionDefinition.Builder proposition)
proposition - the value proposition to setpublic void setVersionNumber(Long versionNumber)
versionNumber - the value versionNumber to setpublic String getId()
IdentifiablegetId in interface Identifiablepublic String getPropId()
PropositionParameterContractIt is the Id of the parent proposition.
getPropId in interface PropositionParameterContractpublic String getValue()
PropositionParameterContractIt is the value of the parameter
getValue in interface PropositionParameterContractpublic String getParameterType()
PropositionParameterContractIt identified the type of the parameter.
getParameterType in interface PropositionParameterContractpublic Integer getSequenceNumber()
PropositionParameterContractgetSequenceNumber in interface PropositionParameterContractpublic Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic PropositionParameter build()
build in interface ModelBuilderCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.