org.specrunner.converters.core
Class ConverterTimestampPatternTemplate

java.lang.Object
  extended by org.specrunner.converters.core.ConverterNotNullNotEmpty
      extended by org.specrunner.converters.core.AbstractConverterTimezone<Date>
          extended by org.specrunner.converters.core.ConverterDatePatternTemplate
              extended by org.specrunner.converters.core.ConverterTimestampPatternTemplate
All Implemented Interfaces:
Serializable, IConverter, IResetable

public class ConverterTimestampPatternTemplate
extends ConverterDatePatternTemplate

General timestamp pattern converter.

Author:
Thiago Santos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.specrunner.converters.core.AbstractConverterTimezone
cacheTimezone, FEATURE_TIMEZONE
 
Constructor Summary
ConverterTimestampPatternTemplate(String pattern)
          Create a SimpleDateFormat using the given pattern.
 
Method Summary
 Object convert(Object value, Object[] args)
          Convert a given object to another using some arguments as auxiliary.
 
Methods inherited from class org.specrunner.converters.core.AbstractConverterTimezone
getTimezone, getZone, initialize, setTimezone
 
Methods inherited from class org.specrunner.converters.core.ConverterNotNullNotEmpty
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterTimestampPatternTemplate

public ConverterTimestampPatternTemplate(String pattern)
Create a SimpleDateFormat using the given pattern.

Parameters:
pattern - Pattern.
Method Detail

convert

public Object convert(Object value,
                      Object[] args)
               throws ConverterException
Description copied from interface: IConverter
Convert a given object to another using some arguments as auxiliary.

Specified by:
convert in interface IConverter
Overrides:
convert in class ConverterDatePatternTemplate
Parameters:
value - The value to be converted.
args - The arguments.
Returns:
The converted object.
Throws:
ConverterException - On conversion errors.


Copyright © 2014. All rights reserved.