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()
Identifiable
getId
in interface Identifiable
public String getPropId()
PropositionParameterContract
It is the Id of the parent proposition.
getPropId
in interface PropositionParameterContract
public String getValue()
PropositionParameterContract
It is the value of the parameter
getValue
in interface PropositionParameterContract
public String getParameterType()
PropositionParameterContract
It identified the type of the parameter.
getParameterType
in interface PropositionParameterContract
public Integer getSequenceNumber()
PropositionParameterContract
getSequenceNumber
in interface PropositionParameterContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public PropositionParameter build()
build
in interface ModelBuilder
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.