Uses of Class
name.matthewgreet.strutscommons.policy.ConversionResult
Packages that use ConversionResult
Package
Description
Various Struts 2 Interceptors.
Standard adjusters, converters and validators used in alternate annotation-based annotation.
Various helper classes, especially for session-based data, and libraries.
-
Uses of ConversionResult in name.matthewgreet.strutscommons.interceptor
Methods in name.matthewgreet.strutscommons.interceptor that return ConversionResultModifier and TypeMethodDescriptionAnnotationValidationInterceptor.ConversionFieldResult.getConversionResult()protected <T> ConversionResult<T> AnnotationValidationInterceptor.validateCollectionConversion(Field unconvertedField, Annotation annotation, ListConverter<?, T> collectionConverter, String formValue, Field recipientField, Class<T> recipientClass) Deprecated.Calls validator to convert string form field value to recipient field of expected data type.protected <T> ConversionResult<T> AnnotationValidationInterceptor.validateConversion(Field unconvertedField, Annotation annotation, Converter<?, T> converter, String fieldValue, Field recipientField, Class<T> recipientClass) Deprecated.Calls validator to convert string form field value to recipient field of expected data type.Methods in name.matthewgreet.strutscommons.interceptor with parameters of type ConversionResultModifier and TypeMethodDescriptionprotected <T> List<T> AnnotationValidationInterceptor.collectionPostConvertAdjust(ActionInvocation invocation, Object form, Field formField, Field recipientField, ConversionResult<T> conversionResult, List<T> parsedListValue, AnnotationValidationInterceptor.AnnotationEntry<T> collectionPostConversionAdjusterAnnotationEntry, boolean modelDriven) Deprecated.Returns converted value adjusted by post conversion adjuster.protected <T> ValidationResultAnnotationValidationInterceptor.collectionPostConvertValidate(ActionInvocation invocation, Object form, Field formField, Field recipientField, ConversionResult<T> conversionResult, Collection<T> parsedValue, AnnotationValidationInterceptor.AnnotationEntry<T> postConversionAnnotationEntry, boolean modelDriven) Deprecated.Return validation result of converted form field value, or null if compatibility checks fail.protected <T> TAnnotationValidationInterceptor.postConvertAdjust(ActionInvocation invocation, Object form, Field formField, Field recipientField, ConversionResult<T> conversionResult, T parsedValue, AnnotationValidationInterceptor.AnnotationEntry<T> postConversionAnnotationEntry, boolean modelDriven) Deprecated.Returns converted value adjusted by post conversion adjuster.protected <T> ValidationResultAnnotationValidationInterceptor.postConvertValidate(ActionInvocation invocation, Object form, Field formField, Field recipientField, ConversionResult<T> conversionResult, T parsedValue, AnnotationValidationInterceptor.AnnotationEntry<T> postConversionAnnotationEntry, boolean modelDriven) Deprecated.Return validation result of converted form field value, or null if compatibility checks fail.Constructors in name.matthewgreet.strutscommons.interceptor with parameters of type ConversionResultModifierConstructorDescriptionConversionFieldResult(Field recipeintField, ConversionResult<T> conversionResult) -
Uses of ConversionResult in name.matthewgreet.strutscommons.policy
Methods in name.matthewgreet.strutscommons.policy that return ConversionResultModifier and TypeMethodDescriptionAbstractCustomListFormatterSupport.convert(String formValue, Class<?> recipientFieldClass, Class<? extends T> recipientClass) AbstractListFormatterSupport.convert(String formValue, Class<?> recipientFieldClass, Class<? extends T> recipientClass) BigDecimalConverter.convert(String formValue, Class<? extends BigDecimal> recipientClass) Returns result of conversion of form field.IntegerCSVConverter.convert(String formValue, Class<?> recipientFieldClass, Class<? extends Integer> recipientClass) ListConverter.convert(String formValue, Class<?> recipientFieldClass, Class<? extends T> recipientClass) Returns result of conversion of form field.StringCSVConverter.convert(String formValue, Class<?> recipientFieldClass, Class<? extends String> recipientClass) static <T> ConversionResult<T> ConversionResult.makeFailureResult()Returns result for failed conversion and using annotation message configuration.static <T> ConversionResult<T> ConversionResult.makeFailureWithMessageKeyResult(String messageKey, Required.MessageType messageType) Returns result for failed conversion and using supplied message key.static <T> ConversionResult<T> ConversionResult.makeFailureWithMessageResult(String message, Required.MessageType messageType) Returns result for failed conversion and using supplied message.static <T> ConversionResult<T> ConversionResult.makeSkippedListResult()Returns result for when field value is an empty string, skipping conversion.static <T> ConversionResult<T> ConversionResult.makeSkippedResult()Returns result for when field value is an empty string, skipping conversion.static <T> ConversionResult<T> ConversionResult.makeSuccessListResult(List<T> parsedValue) Returns result for successful list-based conversion.static <T> ConversionResult<T> ConversionResult.makeSuccessResult(T parsedValue) Returns result for successful single value conversion. -
Uses of ConversionResult in name.matthewgreet.strutscommons.util
Methods in name.matthewgreet.strutscommons.util that return ConversionResultModifier and TypeMethodDescriptionprotected <T> ConversionResult<T> DefaultAnnotationValidator.convert()Invokes converter and returns result, or returns skipped result if the adjusted formatted value is empty string and the converter does not convert them.DefaultAnnotationValidator.FieldContext.getCurrentConversionResult()Returns results of conversions of parameter currently being processed.protected <T> ConversionResult<T> DefaultAnnotationValidator.listConvert()Invokes list converter and returns result, or returns skipped result if the adjusted formatted value is empty string and the list converter does not handle those.Methods in name.matthewgreet.strutscommons.util that return types with arguments of type ConversionResultModifier and TypeMethodDescriptionDefaultAnnotationValidator.FieldContext.getConversionResults()Returns results of conversions of each parameter for field.Methods in name.matthewgreet.strutscommons.util with parameters of type ConversionResultModifier and TypeMethodDescriptionprotected <T> voidDefaultAnnotationValidator.checkConversionMessage(ConversionResult<T> conversionResult) Checks if conversion results means a message must be written and writes appropriate type if needed.protected <T> voidDefaultAnnotationValidator.checkListConversionMessage(ConversionResult<T> conversionResult) Checks if list conversion results means a message must be written and writes appropriate type if needed.voidDefaultAnnotationValidator.FieldContext.setCurrentConversionResult(ConversionResult<T> currentConversionResult) Method parameters in name.matthewgreet.strutscommons.util with type arguments of type ConversionResultModifier and TypeMethodDescriptionvoidDefaultAnnotationValidator.FieldContext.setConversionResults(List<ConversionResult<T>> conversionResults)