Interface ConstrainedPropertyValidatorConverterService
public interface ConstrainedPropertyValidatorConverterService
Converts
ConstrainedProperty instances to a list of client validator configurations (ConstrainedPropertyClientValidatorConfiguration).-
Method Summary
Modifier and TypeMethodDescriptionconvert(ConstrainedProperty constrainedProperty) Returns a list ofConstrainedPropertyClientValidatorConfigurationinstances for single property with constraint.booleansupports(ConstrainedProperty constrainedProperty) Returns whether constrained property is supported for conversion.
-
Method Details
-
convert
List<ConstrainedPropertyClientValidatorConfiguration> convert(ConstrainedProperty constrainedProperty) Returns a list ofConstrainedPropertyClientValidatorConfigurationinstances for single property with constraint. A list is returned because some constraint may produce multiple constraints on client side.- Parameters:
constrainedProperty- constrained property to convert- Returns:
- list of client side validator configuration instances
-
supports
Returns whether constrained property is supported for conversion.- Parameters:
constrainedProperty- constrained property to check- Returns:
- whether constrained property is supported
-