Package org.openxava.formatters
Class DateTimeSeparatedFormatter
- java.lang.Object
-
- org.openxava.formatters.DateTimeBaseFormatter
-
- org.openxava.formatters.DateTimeSeparatedFormatter
-
- All Implemented Interfaces:
IMultipleValuesFormatter
public class DateTimeSeparatedFormatter extends DateTimeBaseFormatter implements IMultipleValuesFormatter
Date and time formatter with multilocale support.- Author:
- Jose Luis Santiago, Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description DateTimeSeparatedFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]format(javax.servlet.http.HttpServletRequest request, java.lang.Object date)From a object return aString []to render in HTML.java.lang.Objectparse(javax.servlet.http.HttpServletRequest request, java.lang.String[] strings)From aString []obtained from a HTTP request return a java object.-
Methods inherited from class org.openxava.formatters.DateTimeBaseFormatter
getDateTimeSeparator, getExtendedDateTimeFormats, isDashFormat, isDotFormat, isExtendedFormat, isZhFormat, isZhFormatAndJavaIs21orBetter, isZhFormatAndJavaLessThan9
-
-
-
-
Method Detail
-
format
public java.lang.String[] format(javax.servlet.http.HttpServletRequest request, java.lang.Object date) throws java.lang.ExceptionDescription copied from interface:IMultipleValuesFormatterFrom a object return aString []to render in HTML.- Specified by:
formatin interfaceIMultipleValuesFormatter- Throws:
java.lang.Exception
-
parse
public java.lang.Object parse(javax.servlet.http.HttpServletRequest request, java.lang.String[] strings) throws java.lang.ExceptionDescription copied from interface:IMultipleValuesFormatterFrom aString []obtained from a HTTP request return a java object.- Specified by:
parsein interfaceIMultipleValuesFormatter- Throws:
java.lang.Exception
-
-