public class BooleanParameterType extends ParameterType<Boolean>
Constructor and Description |
---|
BooleanParameterType()
Create a new boolean parameter type, allowing null values.
|
BooleanParameterType(Boolean defaultValue,
boolean notNull)
Create a new boolean parameter type.
|
BooleanParameterType(Boolean defaultValue,
boolean notNull,
int multiplicity,
Enumeration<Boolean,String> items) |
Modifier and Type | Method and Description |
---|---|
(package private) BooleanParameterValueData |
newParameterValueData()
Create a new
BooleanParameterValueData object. |
String |
toString() |
(package private) void |
validateValue(String name,
Boolean value)
Always validate.
|
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, validate, validate
public BooleanParameterType()
public BooleanParameterType(Boolean defaultValue, boolean notNull)
defaultValue
- Default value to use. Null is allowed.notNull
- FALSE if nulls values are allowed, TRUE otherwisepublic BooleanParameterType(Boolean defaultValue, boolean notNull, int multiplicity, Enumeration<Boolean,String> items)
void validateValue(String name, Boolean value) throws InvalidDataException
validateValue
in class ParameterType<Boolean>
name
- The name of the parameter, use the name if there is need to
throw an exceptionvalue
- The valueInvalidDataException
- If the value is not validBooleanParameterValueData newParameterValueData()
BooleanParameterValueData
object.newParameterValueData
in class ParameterType<Boolean>