Class EntityPropertyValidation<E extends SimpleEntity>
- java.lang.Object
-
- org.cyclos.impl.utils.validation.validations.EntityPropertyValidation<E>
-
- All Implemented Interfaces:
PropertyValidation
public class EntityPropertyValidation<E extends SimpleEntity> extends Object implements PropertyValidation
APropertyValidationwhich invokes anEntityValidationfor each related entity found
-
-
Constructor Summary
Constructors Constructor Description EntityPropertyValidation(Class<E> entityType, EntityValidation<E> entityValidation)
-
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
-
EntityPropertyValidation
public EntityPropertyValidation(Class<E> entityType, EntityValidation<E> entityValidation)
-
-
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
-
-