org.beanfabrics.model
Interface IFormat<T>

Type Parameters:
T -
All Known Implementing Classes:
BigDecimalPM.Format

public interface IFormat<T>

The IFormat defines the programming interface for formatting instances of a specific type into Strings and for parsing Strings back into objects.


Method Summary
 java.lang.String format(T value)
          Formats the given value to a String representation.
 T parse(java.lang.String text)
          Parses the given text and returns an instance of T that is represented by the text.
 

Method Detail

parse

T parse(java.lang.String text)
        throws ConversionException
Parses the given text and returns an instance of T that is represented by the text.

Parameters:
text -
Returns:
an instance of T that represents the given text
Throws:
ConversionException

format

java.lang.String format(T value)
Formats the given value to a String representation.

Parameters:
value -
Returns:
the String representation of the given value