Package net.sf.basedb.core
Class ItemParameterType<T extends BasicItem>
- java.lang.Object
-
- net.sf.basedb.core.ParameterType<T>
-
- net.sf.basedb.core.ItemParameterType<T>
-
public class ItemParameterType<T extends BasicItem> extends ParameterType<T>
This class represent a parameter type that is an object derived fromBasicData
. It will have a list ofBasicItem
derived objects of the same type to choose from.- Version:
- 2.0
- Author:
- Samuel, Nicklas
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ItemParameterValueData
newParameterValueData()
Create a newItemParameterValueData
object.String
toString()
(package private) void
validateValue(String name, T value)
Check if the value is in the list of allowed values.-
Methods inherited from class net.sf.basedb.core.ParameterType
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, isMasked, validate, validate
-
-
-
-
Method Detail
-
validateValue
void validateValue(String name, T value) throws InvalidDataException
Check if the value is in the list of allowed values.- Specified by:
validateValue
in classParameterType<T extends BasicItem>
- 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<T extends BasicItem>
-
-