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 IFormatter
For convert to String (used in HTML page) to Object (used in java side), and vice versa.

Author:
Javier Paniza
  • Method Summary

    Modifier and Type
    Method
    Description
    format(javax.servlet.http.HttpServletRequest request, Object object)
    From a object return a String to render in HTML.
    parse(javax.servlet.http.HttpServletRequest request, String string)
    From a String obtained from a HTTP request return a java object.
  • Method Details

    • format

      String format(javax.servlet.http.HttpServletRequest request, Object object) throws Exception
      From a object return a String to render in HTML.
      Throws:
      Exception
    • parse

      Object parse(javax.servlet.http.HttpServletRequest request, String string) throws Exception
      From a String obtained from a HTTP request return a java object.
      Throws:
      Exception