Package com.sas.lsaf.execution.job
Class JobParameter
java.lang.Object
com.sas.lsaf.execution.job.JobParameter
- All Implemented Interfaces:
Serializable
The client representation of a job parameter.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJobParameter(String name, String label, JobParameter.ParameterType type) The constructor.JobParameter(String name, String label, JobParameter.ParameterType type, Serializable defaultValue) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the default value of the parameter.getLabel()Gets the label for the parameter.getName()Gets the name of the parameter.getType()Gets the type of the parameter.inthashCode()voidsetDefaultValue(Serializable defaultValue) Sets the default value of the parameter.voidSets the label for the parameter.voidSets the name of the parameter.voidSets the type of the parameter.toString()
-
Constructor Details
-
JobParameter
public JobParameter(String name, String label, JobParameter.ParameterType type, Serializable defaultValue) The constructor.- Parameters:
name- The name of the parameter.label- The label for the parameter.type- The type of the parameter.defaultValue- The default value for the parameter. For parameters of type FILE and FOLDER, the value must be specified as aJobInput. The values of CHARACTER and NUMERIC parameters must be specified as a String. The DATE parameter values must be specified as java.util.Date.
-
JobParameter
The constructor.- Parameters:
name- The name of the parameter.label- The label for the parameter.type- The type of the parameter.
-
-
Method Details
-
getName
Gets the name of the parameter.- Returns:
- The name.
-
setName
Sets the name of the parameter.- Parameters:
name- The name.
-
getDefaultValue
Gets the default value of the parameter. The value must be cast to the appropriate class based on the parameter type.
For parameters of type FILE and FOLDER, the value must be specified as aJobInput. The values of CHARACTER and NUMERIC parameters must be specified as a String. The DATE parameter values must be specified as java.util.Date.- Returns:
- The default value.
-
setDefaultValue
Sets the default value of the parameter. For parameters of type FILE and FOLDER, the value must be specified as aJobInput. The values of CHARACTER and NUMERIC parameters must be specified as a String. The DATE parameter values must be specified as java.util.Date.- Parameters:
defaultValue- The default value.
-
getType
Gets the type of the parameter.- Returns:
- The type.
-
setType
Sets the type of the parameter.- Parameters:
type- The type.
-
setLabel
Sets the label for the parameter.- Parameters:
label- The label.
-
getLabel
Gets the label for the parameter.- Returns:
- The label.
-
hashCode
public int hashCode() -
equals
-
toString
-