Package io.jmix.dynmodel
Interface DynamicModelValidator
- All Known Implementing Classes:
DynamicModelValidatorImpl
@NullMarked
public interface DynamicModelValidator
Validates dynamic model constraints stored in runtime metadata.
-
Method Summary
Modifier and TypeMethodDescriptionValidates all dynamic constraints of the entity for the specified groups.validateValue(MetaClass metaClass, String propertyName, Object value, Class<?>... groups) Validates a single dynamic property value for the specified groups.
-
Method Details
-
validate
Validates all dynamic constraints of the entity for the specified groups.- Parameters:
entity- entity to validategroups- 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 classpropertyName- property namevalue- property valuegroups- validation groups- Returns:
- dynamic constraint violations
-