org.apache.commons.beanutils.locale
public interface LocaleConverter extends Converter
General purpose locale-sensitive data type converter that can be registered and used within the BeanUtils package to manage the conversion of objects from one type to another.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object value,
java.lang.String pattern)
Convert the specified locale-sensitive input object into an output object of the
specified type.
|
java.lang.Object convert(java.lang.Class type, java.lang.Object value, java.lang.String pattern)
type
- Data type to which this value should be convertedvalue
- The input value to be convertedpattern
- The user-defined pattern is used for the input object formatting.ConversionException
- if conversion cannot be performed
successfullyCopyright (c) 2001-2004 - Apache Software Foundation