Uses of Class
name.matthewgreet.strutscommons.validators.ValidationResult
Packages that use ValidationResult
Package
Description
-
Uses of ValidationResult in name.matthewgreet.strutscommons.interceptor
Methods in name.matthewgreet.strutscommons.interceptor that return ValidationResultModifier and TypeMethodDescriptionprotected <T> ValidationResult
AnnotationValidationInterceptor.collectionPostConvert
(com.opensymphony.xwork2.ActionInvocation invocation, Object form, Field formField, Field recipientField, Collection<T> parsedValue, AnnotationValidationInterceptor.AnnotationEntry<T> postConversionAnnotationEntry, boolean modelDriven) Return validation result of converted form field value, or null if compatibility checks fail.protected <T> ValidationResult
AnnotationValidationInterceptor.postConvert
(com.opensymphony.xwork2.ActionInvocation invocation, Object form, Field formField, Field recipientField, T parsedValue, AnnotationValidationInterceptor.AnnotationEntry<T> postConversionAnnotationEntry, boolean modelDriven) Return validation result of converted form field value, or null if compatibility checks fail.protected <T> ValidationResult
AnnotationValidationInterceptor.validateCollectionPostConversion
(Field unconvertedField, Annotation annotation, CollectionPostConversionValidator<?, T> collectionPostConversionValidator, Collection<T> convertedValue, Field recipientField, Class<?> recipientClass) Calls validator to check a converted form field.protected ValidationResult
AnnotationValidationInterceptor.validateNonConversion
(Field unconvertedField, AnnotationValidationInterceptor.AnnotationEntry<?> annotationEntry, String formValue) Calls validator to check a form field before any conversion.protected <T> ValidationResult
AnnotationValidationInterceptor.validatePostConversion
(Field unconvertedField, Annotation annotation, PostConversionValidator<?, T> postConversionValidator, T convertedValue, Field recipientField, Class<T> recipientClass) Calls validator to check a converted form field.Methods in name.matthewgreet.strutscommons.interceptor with parameters of type ValidationResultModifier and TypeMethodDescriptionprotected <T> void
AnnotationValidationInterceptor.checkCollectionPostConversionMessage
(Field unconvertedField, Annotation annotation, CollectionPostConversionValidator<?, T> collectionPostConversionValidator, AnnotationValidationInterceptor.ConversionFieldResult<T> conversionFieldResult, ValidationResult validationResult, com.opensymphony.xwork2.interceptor.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider) Checks if conversion results means a message must be written and writes appropriate type if needed.protected void
AnnotationValidationInterceptor.checkNonConversionMessage
(Field unconvertedField, Annotation annotation, NonConversionValidator<?> validator, ValidationResult validationResult, com.opensymphony.xwork2.interceptor.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider) Checks if non-conversion validation results means a message must be written and writes appropriate type if needed.protected <T> void
AnnotationValidationInterceptor.checkPostConversionMessage
(Field unconvertedField, Annotation annotation, PostConversionValidator<?, T> postConversionValidator, AnnotationValidationInterceptor.ConversionFieldResult<T> conversionFieldResult, ValidationResult validationResult, com.opensymphony.xwork2.interceptor.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider) Checks if conversion results means a message must be written and writes appropriate type if needed. -
Uses of ValidationResult in name.matthewgreet.strutscommons.validators
Methods in name.matthewgreet.strutscommons.validators that return ValidationResultModifier and TypeMethodDescriptionstatic ValidationResult
ValidationResult.makeFailureResult()
Returns result for validation fail and using annotation message configuration.static ValidationResult
ValidationResult.makeFailureWithMessageKeyResult
(String messageKey, Required.MessageType messageType) Returns result for validation fail and using supplied message key.static ValidationResult
ValidationResult.makeFailureWithMessageResult
(String message, Required.MessageType messageType) Returns result for validation fail and using supplied message.static ValidationResult
ValidationResult.makeSuccessResult()
Returns result for validation pass.abstract ValidationResult
AbstractCustomCollectionPostConversionValidatorSupport.validate
(Collection<T> formValue) CollectionPostConversionValidator.validate
(Collection<T> formValue) Returns result of checking converted form field value and message to use if failed.Returns result of validation of form field.Returns result of checking converted form field value and message to use if failed.