Package net.sf.basedb.core
Class FileParameterType
This class represent a parameter type that is a file.
- Version:
- 2.0
- Author:
- Samuel, Nicklas
- Last modified
- $Date$
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new file parameter type, allowing null values.FileParameterType
(File defaultValue, boolean notNull, int multiplicity) Create a new file parameter type. -
Method Summary
Modifier and TypeMethodDescription(package private) ItemParameterValueData
Create a newItemParameterValueData
object.toString()
(package private) void
validateValue
(String name, File value) Always validate.Methods inherited from class net.sf.basedb.core.ParameterType
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, isMasked, validate, validate
-
Constructor Details
-
FileParameterType
public FileParameterType()Create a new file parameter type, allowing null values. -
FileParameterType
Create a new file parameter type.- Parameters:
defaultValue
- Default value of the parameter. Null is allowednotNull
- FALSE if nulls values are allowed, TRUE otherwisemultiplicity
- How many values that can be tied to this parameter. 0 is unlimited values and 1 is default.
-
-
Method Details
-
toString
-
validateValue
Always validate.- Specified by:
validateValue
in classParameterType<File>
- Parameters:
name
- The name of the parameter, use the name if there is need to throw an exceptionvalue
- The value- Throws:
InvalidDataException
- If the value is not valid
-
newParameterValueData
ItemParameterValueData newParameterValueData()Create a newItemParameterValueData
object.- Specified by:
newParameterValueData
in classParameterType<File>
-