|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.ParameterType<Date>
net.sf.basedb.core.DateParameterType
public class DateParameterType
This class represent a parameter type that is a date.
| Constructor Summary | |
|---|---|
DateParameterType()
Create a new date parameter type, allowing null values. |
|
DateParameterType(Date defaultValue,
boolean notNull)
Create a new date parameter type. |
|
DateParameterType(Date defaultValue,
boolean notNull,
int multiplicity,
int width,
int height,
List<Date> items)
Creates a new DateParameterType |
|
| Method Summary | |
|---|---|
(package private) DateParameterValueData |
newParameterValueData()
Create a new DateParameterValueData object. |
String |
toString()
|
(package private) void |
validateValue(String name,
Date 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 DateParameterType()
public DateParameterType(Date defaultValue,
boolean notNull)
defaultValue - Value to use as default. Null is allowed.notNull - FALSE if nulls values are allowed, TRUE otherwise
public DateParameterType(Date defaultValue,
boolean notNull,
int multiplicity,
int width,
int height,
List<Date> items)
defaultValue - The default value for this parameter type.notNull - FALSE if this parameter type is allowed to be null, otherwise TRUE.multiplicity - How many values that can be tied to this parameter.width - Width of the input field for this parameter type in the GUI.height - Height of the input field for this parameter type in the GUI.items - A list of allowed items for this parameter type.| Method Detail |
|---|
public String toString()
toString in class Object
void validateValue(String name,
Date value)
throws InvalidDataException
validateValue in class ParameterType<Date>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 validDateParameterValueData newParameterValueData()
DateParameterValueData object.
newParameterValueData in class ParameterType<Date>
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||