Class BaseGeneralValidation
- java.lang.Object
-
- org.cyclos.impl.utils.validation.validations.BaseGeneralValidation
-
- All Implemented Interfaces:
GeneralValidation
public abstract class BaseGeneralValidation extends Object implements GeneralValidation
Base class forGeneralValidations. Receive on the constructor aValidationErrorthat will be returned when there are errors. Defines theisValid(Object)method that should be implemented in order to check if the given value is valid.
-
-
Constructor Summary
Constructors Constructor Description BaseGeneralValidation(ValidationError error)BaseGeneralValidation(MessageKey key)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanisValid(Object object)ValidationErrorvalidate(Object object)Validates the object
-
-
-
Constructor Detail
-
BaseGeneralValidation
public BaseGeneralValidation(MessageKey key)
-
BaseGeneralValidation
public BaseGeneralValidation(ValidationError error)
-
-
Method Detail
-
validate
public ValidationError validate(Object object)
Description copied from interface:GeneralValidationValidates the object- Specified by:
validatein interfaceGeneralValidation
-
isValid
protected abstract boolean isValid(Object object)
-
-