org.specrunner.formatters.core
Class FormatterJodatimeTemplate

java.lang.Object
  extended by org.specrunner.formatters.core.AbstractFormatterTime<org.joda.time.format.DateTimeFormatter>
      extended by org.specrunner.formatters.core.FormatterJodatime
          extended by org.specrunner.formatters.core.FormatterJodatimeTemplate
All Implemented Interfaces:
Serializable, IFormatter, IResetable

public class FormatterJodatimeTemplate
extends FormatterJodatime

Formatter template for Jodatime.

Author:
Thiago Santos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.specrunner.formatters.core.AbstractFormatterTime
cache
 
Constructor Summary
FormatterJodatimeTemplate(String pattern)
           
 
Method Summary
 String format(Object value, Object[] args)
          Format a given object to another using some arguments as auxiliary.
 
Methods inherited from class org.specrunner.formatters.core.FormatterJodatime
format, newInstance, testType
 
Methods inherited from class org.specrunner.formatters.core.AbstractFormatterTime
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterJodatimeTemplate

public FormatterJodatimeTemplate(String pattern)
Method Detail

format

public String format(Object value,
                     Object[] args)
              throws FormatterException
Description copied from interface: IFormatter
Format a given object to another using some arguments as auxiliary.

Specified by:
format in interface IFormatter
Overrides:
format in class AbstractFormatterTime<org.joda.time.format.DateTimeFormatter>
Parameters:
value - The value to be formatted.
args - The arguments.
Returns:
The formatted object.
Throws:
FormatterException - On format errors.


Copyright © 2015. All rights reserved.