public class JobParameter extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JobParameter.ParameterType |
Constructor and Description |
---|
JobParameter(String name,
JobParameter.ParameterType type,
String label)
Constructor
|
JobParameter(String name,
Serializable defaultValue,
JobParameter.ParameterType type,
String label)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Serializable |
getDefaultValue()
Get the default value of the parameter.
|
String |
getLabel()
Get the label for this parameter.
|
String |
getName()
Get the name of the parameter.
|
JobParameter.ParameterType |
getType()
Get the type of the parameter.
|
int |
hashCode() |
void |
setDefaultValue(Serializable defaultValue)
Set the default value of the parameter.
|
void |
setLabel(String label)
Set the label for this parameter.
|
void |
setName(String name)
Set the name of the parameter.
|
void |
setType(JobParameter.ParameterType type)
Set the type of the parameter.
|
String |
toString() |
public JobParameter(String name, Serializable defaultValue, JobParameter.ParameterType type, String label)
name
- Name of the parameter.defaultValue
- The default value for the parameter. For parameters of type FILE and FOLDER, the value should
be specified as an ItemSpecification
. Values of CHARACTER and
NUMERIC parameters should be specified as a String. DATE parameter values should be specified as
java.util.Date.type
- The type of the parameter.label
- The label for the parameter.public JobParameter(String name, JobParameter.ParameterType type, String label)
name
- Name of the parameter.type
- The type of the parameter.label
- The label for the parameter.public String getName()
public void setName(String name)
name
- The name to set.public Serializable getDefaultValue()
public void setDefaultValue(Serializable defaultValue)
ItemSpecification
. Values of CHARACTER and NUMERIC parameters should be
specified as a String. DATE parameter values should be specified as java.util.Date.defaultValue
- The defaultValue to set.public JobParameter.ParameterType getType()
public void setType(JobParameter.ParameterType type)
type
- the type of the parameter.public void setLabel(String label)
label
- the label to set for this parameterpublic String getLabel()
Copyright (c) 2019, SAS Institute Inc., Cary, NC, USA