Class IntegerValidatorTypeAdapter
java.lang.Object
ch.tocco.nice2.types.api.AbstractTypeAdapter
ch.tocco.nice2.model.entity.impl.entity.validatortypeadapters.IntegerValidatorTypeAdapter
- All Implemented Interfaces:
ValidatorTypeAdapter
,TypeReceivable
public class IntegerValidatorTypeAdapter
extends AbstractTypeAdapter
implements ValidatorTypeAdapter
Integer as in "not a real" (mathematically), covering all types
byte, short, integer, long.
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.api.AbstractTypeAdapter
type
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.tocco.nice2.types.api.AbstractTypeAdapter
setType
-
Constructor Details
-
IntegerValidatorTypeAdapter
public IntegerValidatorTypeAdapter()
-
-
Method Details
-
getDefaults
Description copied from interface:ValidatorTypeAdapter
These validation rules are added as fallbacks, for the case that there is nothing else defined.For example the "string" type may define a max-length of 255, which can be explicitly set to more or less, in which case the setting from here has to be ignored.
- Specified by:
getDefaults
in interfaceValidatorTypeAdapter
-
getConstraints
Description copied from interface:ValidatorTypeAdapter
These validation rules are enforced no matter what. These define maximum boundaries.For example the "byte" type has a max value of 127. Yes, a larger value cannot be stored in a byte data type anyway, but this information is retrieved by other parts of the application, for example the gui, to set boundaries.
- Specified by:
getConstraints
in interfaceValidatorTypeAdapter
-
getMin
public double getMin() -
getMax
public double getMax()
-