net.lessy.util.format
Interface FormatIF<T>

All Known Implementing Classes:
FormatCurrency, FormatDate, FormatFloat, FormatTime

public interface FormatIF<T>

Implement this interface to create custom formatters. Formatters can be registered with a unique name and can be used directly for formatting values or can be used in a JSP-Page with tags supporting the format attribute.

Author:
hl

Method Summary
 String format(T pValue, Locale pLocale, Properties pProps)
          Formats the passed value and returns the result as a string
 

Method Detail

format

String format(T pValue,
              Locale pLocale,
              Properties pProps)
Formats the passed value and returns the result as a string

Parameters:
pValue - Value to be formatted
pLocale - Locale which can eventually be used by the formatter
pProps - Additional properties wich the formatter might need. This depends to the implementation
Returns:
A formatted string or null if the value could not be formatted


Copyright © 2012. All Rights Reserved.