public class JobParameter extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JobParameter.ParameterType |
Constructor and Description |
---|
JobParameter(String name,
String label,
JobParameter.ParameterType type)
The constructor.
|
JobParameter(String name,
String label,
JobParameter.ParameterType type,
Serializable defaultValue)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Serializable |
getDefaultValue()
Gets the default value of the parameter.
|
String |
getLabel()
Gets the label for the parameter.
|
String |
getName()
Gets the name of the parameter.
|
JobParameter.ParameterType |
getType()
Gets the type of the parameter.
|
int |
hashCode() |
void |
setDefaultValue(Serializable defaultValue)
Sets the default value of the parameter.
|
void |
setLabel(String label)
Sets the label for the parameter.
|
void |
setName(String name)
Sets the name of the parameter.
|
void |
setType(JobParameter.ParameterType type)
Sets the type of the parameter.
|
String |
toString() |
public JobParameter(String name, String label, JobParameter.ParameterType type, Serializable defaultValue)
name
- The name of the parameter.defaultValue
- The default value for the parameter. For parameters of type FILE and FOLDER, the value must
be specified as a JobInput
. The values of CHARACTER and NUMERIC
parameters must be specified as a String. The DATE parameter values must be specified as
java.util.Date.type
- The type of the parameter.label
- The label for the parameter.public JobParameter(String name, String label, JobParameter.ParameterType type)
name
- The name of the parameter.label
- The label for the parameter.type
- The type of the parameter.public String getName()
public void setName(String name)
name
- The name.public Serializable getDefaultValue()
JobInput
. The values of CHARACTER and NUMERIC parameters must be specified as
a String. The DATE parameter values must be specified as java.util.Date.public void setDefaultValue(Serializable defaultValue)
JobInput
. The values of CHARACTER and NUMERIC parameters must be specified as
a String. The DATE parameter values must be specified as java.util.Date.defaultValue
- The default value.public JobParameter.ParameterType getType()
public void setType(JobParameter.ParameterType type)
type
- The type.public void setLabel(String label)
label
- The label.public String getLabel()
<i>Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA</i>