org.apache.commons.convert.conversion
Class ClassToStringConversion
java.lang.Object
org.apache.commons.convert.conversion.AbstractConversion
org.apache.commons.convert.conversion.ClassToStringConversion
- All Implemented Interfaces:
- Conversion
public class ClassToStringConversion
- extends AbstractConversion
Conversion from Class to String using getName()
.
- Since:
- 1.0
- Version:
- $Id: ClassToStringConversion.java 155441 2005-02-26 13:19:22Z dirkv $
- Author:
- Stephen Colebourne
INSTANCE
public static final Conversion INSTANCE
- Singleton instance of this factory
ClassToStringConversion
protected ClassToStringConversion()
- Constructor.
convertValue
protected Object convertValue(Object value,
Converter converter)
- Convert the non-null Class to a String using
getName()
.
- Overrides:
convertValue
in class AbstractConversion
- 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.