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()
ParameterContract
It is a way of assigning the Parameter to a specific rice application or rice ecosystem.
getApplicationId
in interface ParameterContract
public String getNamespaceCode()
ParameterContract
It is a way of assigning the parameter to a logical grouping within a rice application or rice ecosystem.
getNamespaceCode
in interface ParameterContract
public String getComponentCode()
ParameterContract
It is a way of assigning a parameter to a functional component within a rice application or rice ecosystem.
getComponentCode
in interface ParameterContract
public String getName()
ParameterContract
getName
in interface ParameterContract
public String getValue()
ParameterContract
getValue
in interface ParameterContract
public String getDescription()
ParameterContract
getDescription
in interface ParameterContract
public EvaluationOperator getEvaluationOperator()
ParameterContract
This allows parameters to be used as primitive business rules.
getEvaluationOperator
in interface ParameterContract
public Parameter build()
ModelBuilder
build
in interface ModelBuilder
public 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 ParameterContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.