|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.ParameterType<File> net.sf.basedb.core.FileParameterType
public class FileParameterType
This class represent a parameter type that is a file.
Constructor Summary | |
---|---|
FileParameterType()
Create a new file parameter type, allowing null values. |
|
FileParameterType(File defaultValue,
boolean notNull,
int multiplicity)
Create a new file parameter type. |
Method Summary | |
---|---|
(package private) ItemParameterValueData |
newParameterValueData()
Create a new ItemParameterValueData object. |
String |
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, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileParameterType()
public FileParameterType(File defaultValue, boolean notNull, int multiplicity)
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 Detail |
---|
public String toString()
toString
in class Object
void validateValue(String name, File value) throws InvalidDataException
validateValue
in class ParameterType<File>
name
- The name of the parameter, use the name if there is need to
throw an exceptionvalue
- The value
InvalidDataException
- If the value is not validItemParameterValueData newParameterValueData()
ItemParameterValueData
object.
newParameterValueData
in class ParameterType<File>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |