org.specrunner.formatters
Interface IFormatter

All Superinterfaces:
IResetable, Serializable
All Known Implementing Classes:
AbstractFormatterTime, FormatterDate, FormatterDateTemplate, FormatterJodatime, FormatterJodatimeTemplate

public interface IFormatter
extends IResetable

A generic formatter interface.

Author:
Thiago Santos

Method Summary
 String format(Object value, Object[] args)
          Format a given object to another using some arguments as auxiliary.
 
Methods inherited from interface org.specrunner.util.reset.IResetable
initialize
 

Method Detail

format

String format(Object value,
              Object[] args)
              throws FormatterException
Format a given object to another using some arguments as auxiliary.

Parameters:
value - The value to be formatted.
args - The arguments.
Returns:
The formatted object.
Throws:
FormatterException - On format errors.


Copyright © 2015. All rights reserved.