| java.lang.Object org.csvbeans.validators.FieldValidator
All known Subclasses: org.csvbeans.validators.DoubleValidator, org.csvbeans.validators.DigitValidator, org.csvbeans.validators.FloatValidator, org.csvbeans.validators.LongValidator, org.csvbeans.validators.BooleanValidator, org.csvbeans.samples.validators.CountryValidator, org.csvbeans.validators.DateValidator, org.csvbeans.validators.StringRangeValidator, org.csvbeans.validators.RegexpValidator, org.csvbeans.validators.IntegerValidator, org.csvbeans.samples.validators.ZipCodeValidator,
FieldValidator | abstract public class FieldValidator implements Validator(Code) | | Has the responsability to validate a field value.
You should inherit from this class when creating your own validators.
author: Fouad HAMDI since: 0.7 |
addProperty | public void addProperty(Property property)(Code) | | Add a property to the validator.
Parameters: property - |
getContextManager | protected ContextManager getContextManager()(Code) | | Return the context manager. Convenient method for the inherited
classes.
the context manager |
getProperty | public Property getProperty(String name)(Code) | | Return the property associated with the specified name.
Parameters: name - the property name the property or null if not found. |
init | public void init(ContextManager manager)(Code) | | Define the context manager that can be used to retrieve or store
attributes.
|
onEndingRecordContext | public void onEndingRecordContext()(Code) | | Is called at the end of the record context. Implement it when
you need to release some resources before the record context is
closed.
|
onEndingSessionContext | public void onEndingSessionContext()(Code) | | Is called at the end of the session context. Implement it when
you need to release some resources before the session context is
closed.
|
|
|