org.specrunner.formatters.core
Class FormatterDateTemplate

java.lang.Object
  extended by org.specrunner.formatters.core.AbstractFormatterTime<SimpleDateFormat>
      extended by org.specrunner.formatters.core.FormatterDate
          extended by org.specrunner.formatters.core.FormatterDateTemplate
All Implemented Interfaces:
Serializable, IFormatter, IResetable

public class FormatterDateTemplate
extends FormatterDate

Formatter template for dates.

Author:
Thiago Santos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.specrunner.formatters.core.AbstractFormatterTime
cache
 
Constructor Summary
FormatterDateTemplate(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.FormatterDate
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

FormatterDateTemplate

public FormatterDateTemplate(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<SimpleDateFormat>
Parameters:
value - The value to be formatted.
args - The arguments.
Returns:
The formatted object.
Throws:
FormatterException - On format errors.


Copyright © 2015. All rights reserved.