public class DateConverter extends DefaultTypeConverter
MILLISECOND_FORMATNO_CONVERSION_POSSIBLE, TYPE_CONVERTER_CONTEXT_KEY| Constructor and Description | 
|---|
| DateConverter() | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | convertValue(Map<String,Object> context,
            Object target,
            Member member,
            String propertyName,
            Object value,
            Class toType)Converts the given value to a given type. | 
| protected DateTimeFormatter[] | getDateTimeFormats(ActionContext context,
                  Locale locale)Retrieves the list of date time formats to be used when converting dates | 
| protected String | getGlobalDateString(ActionContext context)The user defined global date format, see
  Date.DATETAG_PROPERTY | 
bigDecValue, bigIntValue, booleanValue, convertValue, convertValue, doubleValue, enumValue, getLocale, getTypeConverter, longValue, setContainer, stringValue, stringValuepublic Object convertValue(Map<String,Object> context, Object target, Member member, String propertyName, Object value, Class toType)
TypeConverterconvertValue in interface TypeConverterconvertValue in class DefaultTypeConvertercontext - context under which the conversion is being donetarget - target object in which the property is being setmember - member (Constructor, Method or Field) being setpropertyName - property name being setvalue - value to be convertedtoType - type to which value is convertedprotected String getGlobalDateString(ActionContext context)
Date.DATETAG_PROPERTYcontext - current ActionContextprotected DateTimeFormatter[] getDateTimeFormats(ActionContext context, Locale locale)
context - the current ActionContextlocale - the current locale of the actionCopyright © 2000–2025 Apache Software Foundation. All rights reserved.