org.apache.commons.convert.conversion
Class TimeZoneToStringConversionFactory

java.lang.Object
  extended by org.apache.commons.convert.conversion.AbstractConversionFactory
      extended by org.apache.commons.convert.conversion.TimeZoneToStringConversionFactory
All Implemented Interfaces:
ConversionFactory

public class TimeZoneToStringConversionFactory
extends AbstractConversionFactory

Conversion from TimeZone to String using getID().

Since:
1.0
Version:
$Id: TimeZoneToStringConversionFactory.java 155441 2005-02-26 13:19:22Z dirkv $
Author:
Stephen Colebourne

Field Summary
static ConversionFactory INSTANCE
          Singleton instance of this factory
 
Fields inherited from class org.apache.commons.convert.conversion.AbstractConversionFactory
STRING_CLASS
 
Constructor Summary
protected TimeZoneToStringConversionFactory()
          Restricted constructor.
 
Method Summary
protected  Object convertValue(Object value, Converter converter)
          Convert the non-null TimeZone to a String using getID().
 
Methods inherited from class org.apache.commons.convert.conversion.AbstractConversionFactory
getBaseFromType, getInstance, getMatchPercent, getMatchPercent, getToType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final ConversionFactory INSTANCE
Singleton instance of this factory

Constructor Detail

TimeZoneToStringConversionFactory

protected TimeZoneToStringConversionFactory()
Restricted constructor.

Method Detail

convertValue

protected Object convertValue(Object value,
                              Converter converter)
Convert the non-null TimeZone to a String using getID().

Specified by:
convertValue in class AbstractConversionFactory
Parameters:
value - the input value to be converted, pre-checked to not be null
converter - the converter being used, not null
Returns:
the converted value


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.