public class TimestampParameterType extends ParameterType<java.util.Date>
Constructor and Description |
---|
TimestampParameterType()
Create a new timestamp parameter type, allowing null values.
|
TimestampParameterType(java.util.Date defaultValue,
boolean notNull)
Create a new timestamp parameter type.
|
TimestampParameterType(java.util.Date defaultValue,
boolean notNull,
int multiplicity,
int width,
int height,
java.util.List<java.util.Date> items)
Creates a new TimestampParameterType
|
Modifier and Type | Method and Description |
---|---|
(package private) TimestampParameterValueData |
newParameterValueData()
Create a new
TimestampParameterValueData object. |
java.lang.String |
toString() |
(package private) void |
validateValue(java.lang.String name,
java.util.Date value)
Always validate.
|
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, isMasked, validate, validate
public TimestampParameterType()
public TimestampParameterType(java.util.Date defaultValue, boolean notNull)
defaultValue
- Value to use as default. Null is allowed.notNull
- FALSE if nulls values are allowed, TRUE otherwisepublic TimestampParameterType(java.util.Date defaultValue, boolean notNull, int multiplicity, int width, int height, java.util.List<java.util.Date> items)
defaultValue
- The default value for this parameter type.notNull
- FALSE if this parameter type is allowed to be null, otherwise TRUE.multiplicity
- How many values that can be tied to this parameter.width
- Width of the input field for this parameter type in the GUI.height
- Height of the input field for this parameter type in the GUI.items
- A list of allowed items for this parameter type.public java.lang.String toString()
toString
in class java.lang.Object
void validateValue(java.lang.String name, java.util.Date value) throws InvalidDataException
validateValue
in class ParameterType<java.util.Date>
name
- The name of the parameter, use the name if there is need to
throw an exceptionvalue
- The valueInvalidDataException
- If the value is not validTimestampParameterValueData newParameterValueData()
TimestampParameterValueData
object.newParameterValueData
in class ParameterType<java.util.Date>