Package org.openxava.formatters
Interface IFormatter
-
- All Known Implementing Classes:
BaseFormatter,BooleanFormatter,BooleanIconListFormatter,DateFormatter,DateTimeCombinedFormatter,FileListFormatter,HTMLFilterListFormatter,HtmlTextFormatter,HtmlTextListFormatter,IconListFormatter,ImageFormatter,LocalDateFormatter,LocalDateTimeFormatter,MyReportComparatorListFormatter,SQLTimeFormatter,StringTimeFormatter,TimeBaseFormatter,TimeFormatter,UpperCaseFormatter,WebURLFormatter
public interface IFormatterFor convert to String (used in HTML page) to Object (used in java side), and vice versa.- Author:
- Javier Paniza
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringformat(javax.servlet.http.HttpServletRequest request, java.lang.Object object)From a object return aStringto render in HTML.java.lang.Objectparse(javax.servlet.http.HttpServletRequest request, java.lang.String string)From aStringobtained from a HTTP request return a java object.
-
-
-
Method Detail
-
format
java.lang.String format(javax.servlet.http.HttpServletRequest request, java.lang.Object object) throws java.lang.ExceptionFrom a object return aStringto render in HTML.- Throws:
java.lang.Exception
-
parse
java.lang.Object parse(javax.servlet.http.HttpServletRequest request, java.lang.String string) throws java.lang.ExceptionFrom aStringobtained from a HTTP request return a java object.- Throws:
java.lang.Exception
-
-