org.specrunner.formatters.core
Class FormatterDateTemplate
java.lang.Object
org.specrunner.formatters.core.AbstractFormatterTime<SimpleDateFormat>
org.specrunner.formatters.core.FormatterDate
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
|
Method Summary |
String |
format(Object value,
Object[] args)
Format a given object to another using some arguments as auxiliary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatterDateTemplate
public FormatterDateTemplate(String pattern)
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.