org.specrunner.formatters.core
Class FormatterDate

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

public class FormatterDate
extends AbstractFormatterTime<SimpleDateFormat>

Formatter.

Author:
Thiago Santos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.specrunner.formatters.core.AbstractFormatterTime
cache
 
Constructor Summary
FormatterDate()
           
 
Method Summary
protected  String format(SimpleDateFormat pattern, Object value, Object[] args)
           
protected  SimpleDateFormat newInstance(String str)
           
protected  boolean testType(Object value)
           
 
Methods inherited from class org.specrunner.formatters.core.AbstractFormatterTime
format, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatterDate

public FormatterDate()
Method Detail

testType

protected boolean testType(Object value)
Specified by:
testType in class AbstractFormatterTime<SimpleDateFormat>

newInstance

protected SimpleDateFormat newInstance(String str)
Specified by:
newInstance in class AbstractFormatterTime<SimpleDateFormat>

format

protected String format(SimpleDateFormat pattern,
                        Object value,
                        Object[] args)
Specified by:
format in class AbstractFormatterTime<SimpleDateFormat>


Copyright © 2015. All rights reserved.