Package com.sas.lsaf.execution.job
Class ParameterValue
java.lang.Object
com.sas.lsaf.execution.job.ParameterValue
- All Implemented Interfaces:
Serializable
The class that represents a parameter value. A parameter value specifies the value of a job parameter when a job is
submitted. The name specifies the job parameter name that is defined in the job. If a default value is defined for
the job parameter, the default value is overridden by the value that is specified by the object.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterValue(String name, Serializable value, JobParameter.ParameterType type) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the name of the parameter.getType()Gets the type of the parameter.getValue()Gets the value of the parameter.inthashCode()voidSets the name of the parameter.voidSets the type of the parameter.voidsetValue(Serializable value) Sets the value of the parameter.toString()
-
Constructor Details
-
ParameterValue
The constructor.- Parameters:
name- The name of the parameter.value- The 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.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.
-
getValue
Gets the value of the parameter.- Returns:
- The default value.
-
setValue
Sets the value of the parameter.- The value specified must have types that are based on the parameter type :
- FILE and FOLDER : The value must be specified as a
JobInput.- CHARACTER and NUMERIC : The value must be specified as java.lang.String.
- DATE : The value must be specified as java.util.Date.
- Parameters:
value- The default value to set.
-
setType
Sets the type of the parameter.- Parameters:
type- The type.
-
getType
Gets the type of the parameter.- Returns:
- The type.
-
hashCode
public int hashCode() -
equals
-
toString
-