org.apache.commons.convert.conversion
Class TimeZoneToStringConversionFactory
java.lang.Object
org.apache.commons.convert.conversion.AbstractConversionFactory
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
INSTANCE
public static final ConversionFactory INSTANCE
- Singleton instance of this factory
TimeZoneToStringConversionFactory
protected TimeZoneToStringConversionFactory()
- Restricted constructor.
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 nullconverter
- the converter being used, not null
- Returns:
- the converted value
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.