org.rythmengine.extension
Interface IFormatter

All Known Implementing Classes:
JodaDateTimeFormatter

public interface IFormatter

Created by luog on 2/01/14.


Method Summary
 String format(Object val, String pattern, Locale locale, String timezone)
          Try to format the object.
 

Method Detail

format

String format(Object val,
              String pattern,
              Locale locale,
              String timezone)
Try to format the object. If the formatter does not recongize the object, then null shall be returned immediately

Parameters:
val - the value object to be formatted
pattern - the pattern to format the object
locale - current locale
timezone - current timezone
Returns:
the formatted string from the value


Copyright © 2014. All Rights Reserved.