|
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<Boolean> net.sf.basedb.core.BooleanParameterType
public class BooleanParameterType
This class represent a parameter type that is a boolean.
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
(package private) BooleanParameterValueData |
newParameterValueData()
Create a new BooleanParameterValueData object. |
String |
toString()
|
(package private) void |
validateValue(String name,
Boolean 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 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)
Method Detail |
---|
public String toString()
toString
in class Object
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 value
InvalidDataException
- If the value is not validBooleanParameterValueData newParameterValueData()
BooleanParameterValueData
object.
newParameterValueData
in class ParameterType<Boolean>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |