public static final class Parameter.Builder extends Object implements ParameterContract, ModelBuilder, Serializable
ParameterContract.| Modifier and Type | Method and Description |
|---|---|
Parameter |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Parameter.Builder |
create(ParameterContract contract)
creates a Parameter from an existing
ParameterContract. |
static Parameter.Builder |
create(String applicationId,
String namespaceCode,
String componentCode,
String name,
ParameterType.Builder parameterType)
creates a Parameter with the required fields.
|
String |
getApplicationId()
This is the application id for the Parameter.
|
String |
getComponentCode()
This is the component code for the parameter.
|
String |
getDescription()
This is the description for what the parameter is used for.
|
EvaluationOperator |
getEvaluationOperator()
This is the evaluation operator for the parameter.
|
String |
getName()
The name of the parameter.
|
String |
getNamespaceCode()
This is the namespace for the parameter.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
ParameterType.Builder |
getParameterType()
This is the type for the parameter.
|
String |
getValue()
The value of the parameter.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
void |
setApplicationId(String applicationId) |
void |
setComponentCode(String componentCode) |
void |
setDescription(String description) |
void |
setEvaluationOperator(EvaluationOperator evaluationOperator) |
void |
setName(String name) |
void |
setNamespaceCode(String namespaceCode) |
void |
setObjectId(String objectId) |
void |
setParameterType(ParameterType.Builder parameterType) |
void |
setValue(String value) |
void |
setVersionNumber(Long versionNumber) |
public static Parameter.Builder create(String applicationId, String namespaceCode, String componentCode, String name, ParameterType.Builder parameterType)
public static Parameter.Builder create(ParameterContract contract)
ParameterContract.public void setApplicationId(String applicationId)
public void setNamespaceCode(String namespaceCode)
public void setComponentCode(String componentCode)
public void setParameterType(ParameterType.Builder parameterType)
public void setDescription(String description)
public void setEvaluationOperator(EvaluationOperator evaluationOperator)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public String getApplicationId()
ParameterContractIt is a way of assigning the Parameter to a specific rice application or rice ecosystem.
getApplicationId in interface ParameterContractpublic String getNamespaceCode()
ParameterContractIt is a way of assigning the parameter to a logical grouping within a rice application or rice ecosystem.
getNamespaceCode in interface ParameterContractpublic String getComponentCode()
ParameterContractIt is a way of assigning a parameter to a functional component within a rice application or rice ecosystem.
getComponentCode in interface ParameterContractpublic String getName()
ParameterContractgetName in interface ParameterContractpublic String getValue()
ParameterContractgetValue in interface ParameterContractpublic String getDescription()
ParameterContractgetDescription in interface ParameterContractpublic EvaluationOperator getEvaluationOperator()
ParameterContractThis allows parameters to be used as primitive business rules.
getEvaluationOperator in interface ParameterContractpublic Parameter build()
ModelBuilderbuild in interface ModelBuilderpublic ParameterType.Builder getParameterType()
ParameterContract
Some parameters have special types in rice which may have special meaning
and is related to the ParameterContract.getEvaluationOperator()
getParameterType in interface ParameterContractpublic Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniqueCopyright © 2005–2016 The Kuali Foundation. All rights reserved.