Package org.apache.struts2.showcase.chat
Class DateConverter
java.lang.Object
org.apache.struts2.conversion.impl.DefaultTypeConverter
org.apache.struts2.util.StrutsTypeConverter
org.apache.struts2.showcase.chat.DateConverter
- All Implemented Interfaces:
TypeConverter
-
Field Summary
Fields inherited from class org.apache.struts2.conversion.impl.DefaultTypeConverter
MILLISECOND_FORMATFields inherited from interface org.apache.struts2.conversion.TypeConverter
NO_CONVERSION_POSSIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertFromString(Map context, String[] values, Class toClass) Converts one or more String values to the specified class.convertToString(Map context, Object o) Converts the specified object to a String.voidsetXWorkConverter(XWorkConverter fallbackConverter) Methods inherited from class org.apache.struts2.util.StrutsTypeConverter
convertValue, performFallbackConversionMethods inherited from class org.apache.struts2.conversion.impl.DefaultTypeConverter
bigDecValue, bigIntValue, booleanValue, convertValue, convertValue, doubleValue, enumValue, getLocale, getTypeConverter, longValue, setContainer, stringValue, stringValue
-
Constructor Details
-
DateConverter
public DateConverter()
-
-
Method Details
-
setXWorkConverter
-
convertFromString
Description copied from class:StrutsTypeConverterConverts one or more String values to the specified class.- Specified by:
convertFromStringin classStrutsTypeConverter- Parameters:
context- the action contextvalues- the String values to be converted, such as those submitted from an HTML formtoClass- the class to convert to- Returns:
- the converted object
-
convertToString
Description copied from class:StrutsTypeConverterConverts the specified object to a String.- Specified by:
convertToStringin classStrutsTypeConverter- Parameters:
context- the action contexto- the object to be converted- Returns:
- the converted String
-