org.specrunner.converters.core
Class AbstractConverterTimezone<T>

java.lang.Object
  extended by org.specrunner.converters.core.ConverterNotNullNotEmpty
      extended by org.specrunner.converters.core.AbstractConverterTimezone<T>
Type Parameters:
T - Date object.
All Implemented Interfaces:
Serializable, IConverter, IResetable
Direct Known Subclasses:
AbstractConverterTimeTemplate, ConverterDatePatternArgs, ConverterDatePatternTemplate

public abstract class AbstractConverterTimezone<T>
extends ConverterNotNullNotEmpty

Create timezone information.

Author:
Thiago Santos
See Also:
Serialized Form

Field Summary
protected static ICache<String,TimeZone> cacheTimezone
          Cache of timezone.
static String FEATURE_TIMEZONE
          Feature to set timezone.
 
Constructor Summary
AbstractConverterTimezone()
           
 
Method Summary
 String getTimezone()
          Get current timezone set.
protected  TimeZone getZone()
          Get a timezone definition.
 void initialize()
          Initialize something.
 void setTimezone(String timezone)
          Set current timezone.
 
Methods inherited from class org.specrunner.converters.core.ConverterNotNullNotEmpty
accept, convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheTimezone

protected static ICache<String,TimeZone> cacheTimezone
Cache of timezone.


FEATURE_TIMEZONE

public static final String FEATURE_TIMEZONE
Feature to set timezone.

Constructor Detail

AbstractConverterTimezone

public AbstractConverterTimezone()
Method Detail

getTimezone

public String getTimezone()
Get current timezone set.

Returns:
The current timezone.

setTimezone

public void setTimezone(String timezone)
Set current timezone.

Parameters:
timezone - The timezone.

initialize

public void initialize()
Description copied from interface: IResetable
Initialize something.

Specified by:
initialize in interface IResetable
Overrides:
initialize in class ConverterNotNullNotEmpty

getZone

protected TimeZone getZone()
Get a timezone definition.

Returns:
A timezone, of name is valid, false, otherwise.


Copyright © 2014. All rights reserved.