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 intgetMaxLength()voidonValidate(SFieldMeta field, SRecordInstance instance)Called when individual field changed, or when record updated.voidsetMaxLength(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:SValidatorICalled when individual field changed, or when record updated. (Default behaviour is to call all registered validators.)- Specified by:
onValidatein classSValidatorI- See Also:
SRecordInstance.onValidateField(simpleorm.dataset.SFieldMeta, java.lang.Object)
-
-