public class BeanValidationHintResolver extends java.lang.Object implements ValidationHintResolver
ValidationHintResolver
that resolves String-based hints to a Class<?> array.| Constructor and Description |
|---|
BeanValidationHintResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class<?> |
handleUnresolvedHint(java.lang.Object model,
java.lang.String flowId,
java.lang.String stateId,
java.lang.String hint)
Invoked when a hint could not be resolved.
|
java.lang.Class<?>[] |
resolveValidationHints(java.lang.Object model,
java.lang.String flowId,
java.lang.String stateId,
java.lang.String[] hints)
Resolve each hint as a fully qualified class name or the name of an inner
Class in the model type or the model or its parent types. |
public java.lang.Class<?>[] resolveValidationHints(java.lang.Object model,
java.lang.String flowId,
java.lang.String stateId,
java.lang.String[] hints)
throws FlowExecutionException
Class in the model type or the model or its parent types.resolveValidationHints in interface ValidationHintResolvermodel - the model objectflowId - the current flow idstateId - the current view state idhints - the hints to resolvenullFlowExecutionException - if a hint is unresolvedhandleUnresolvedHint(Object, String, String, String)protected java.lang.Class<?> handleUnresolvedHint(java.lang.Object model,
java.lang.String flowId,
java.lang.String stateId,
java.lang.String hint)
throws FlowExecutionException
FlowExecutionException.model - the model object that will be validated using the hintsflowId - the current flow idstateId - the current state idhint - the hintFlowExecutionException