Interface DynamicModelValidator

All Known Implementing Classes:
DynamicModelValidatorImpl

@NullMarked public interface DynamicModelValidator
Validates dynamic model constraints stored in runtime metadata.
  • Method Details

    • validate

      Set<jakarta.validation.ConstraintViolation<Object>> validate(Object entity, Class<?>... groups)
      Validates all dynamic constraints of the entity for the specified groups.
      Parameters:
      entity - entity to validate
      groups - validation groups
      Returns:
      constraint violations
    • validateValue

      List<DynamicConstraintViolation> validateValue(MetaClass metaClass, String propertyName, Object value, Class<?>... groups)
      Validates a single dynamic property value for the specified groups.
      Parameters:
      metaClass - owner metadata class
      propertyName - property name
      value - property value
      groups - validation groups
      Returns:
      dynamic constraint violations