Package simpleorm.dataset.validation
Class SValidatorMaxLength
- java.lang.Object
-
- simpleorm.dataset.validation.SValidatorI
-
- simpleorm.dataset.validation.SValidatorMaxLength
-
- All Implemented Interfaces:
java.io.Serializable
public class SValidatorMaxLength extends SValidatorI
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SValidatorMaxLength()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxLength()
void
onValidate(SFieldMeta field, SRecordInstance instance)
Called when individual field changed, or when record updated.void
setMaxLength(int maxLength)
-
-
-
Method Detail
-
getMaxLength
public int getMaxLength()
-
setMaxLength
public void setMaxLength(int maxLength)
-
onValidate
public void onValidate(SFieldMeta field, SRecordInstance instance)
Description copied from class:SValidatorI
Called when individual field changed, or when record updated. (Default behaviour is to call all registered validators.)- Specified by:
onValidate
in classSValidatorI
- See Also:
SRecordInstance.onValidateField(simpleorm.dataset.SFieldMeta, java.lang.Object)
-
-