Class EntityAnnotatedValueValidator

  • All Implemented Interfaces:
    Validator

    public final class EntityAnnotatedValueValidator
    extends TypeValidator
    Ensures that a Class is annotated with @Entity.
    See Also:
    Entity
    • Method Detail

      • appliesTo

        protected boolean appliesTo​(java.lang.Class<?> type)
        Description copied from class: TypeValidator
        Used by apply to figure out whether to apply the validation or simply return.
        Specified by:
        appliesTo in class TypeValidator
        Parameters:
        type - the type to be validated
        Returns:
        true if this validator applies to this type, false otherwise
      • validate

        protected void validate​(java.lang.Class<?> type,
                                java.lang.Object value,
                                java.util.List<ValidationFailure> validationFailures)
        Specified by:
        validate in class TypeValidator