Class TimeIntervalValidation
- java.lang.Object
-
- org.cyclos.impl.utils.validation.validations.TimeIntervalValidation
-
- All Implemented Interfaces:
PropertyValidation
public class TimeIntervalValidation extends Object implements PropertyValidation
Validates the min / max time fields
-
-
Constructor Summary
Constructors Constructor Description TimeIntervalValidation(ITimeInterval interval, boolean acceptLessThen, boolean acceptEqualTo, boolean acceptGreaterThan, ValidationError error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationErrorvalidate(Object object, Object property, Object value)Validates a property value
-
-
-
Constructor Detail
-
TimeIntervalValidation
public TimeIntervalValidation(ITimeInterval interval, boolean acceptLessThen, boolean acceptEqualTo, boolean acceptGreaterThan, ValidationError error)
-
-
Method Detail
-
validate
public ValidationError validate(Object object, Object property, Object value)
Description copied from interface:PropertyValidationValidates a property value- Specified by:
validatein interfacePropertyValidation- Parameters:
object- The objectproperty- The property name or descriptorvalue- The property value- Returns:
- An error if there is an error, or null when is valid
-
-