Package | Description |
---|---|
org.apache.commons.beanutils |
The Bean Introspection Utilities component of the Apache Commons
subproject offers low-level utility classes that assist in getting and setting
property values on Java classes that follow the naming design patterns outlined
in the JavaBeans Specification, as well as mechanisms for dynamically defining
and accessing bean properties.
|
org.apache.commons.beanutils.converters |
Standard implementations of the
Converter interface that
are pre-registered with ConvertUtils at startup time. |
org.apache.commons.beanutils.locale |
Locale-aware extensions of the standard beanutils classes.
|
org.apache.commons.beanutils.locale.converters |
Standard implementations of the locale-aware
LocaleConverter
interface that are pre-registered with locale-aware LocaleConvertUtils
at startup time. |
Modifier and Type | Method and Description |
---|---|
Converter |
ConvertUtilsBean.lookup(Class<?> clazz)
Look up and return any registered
Converter for the specified
destination class; if there is no registered Converter, return
null . |
static Converter |
ConvertUtils.lookup(Class<?> clazz)
Look up and return any registered
Converter for the specified
destination class; if there is no registered Converter, return
null . |
Converter |
ConvertUtilsBean.lookup(Class<?> sourceType,
Class<?> targetType)
Look up and return any registered
Converter for the specified
source and destination class; if there is no registered Converter,
return null . |
static Converter |
ConvertUtils.lookup(Class<?> sourceType,
Class<?> targetType)
Look up and return any registered
Converter for the specified
source and destination class; if there is no registered Converter,
return null . |
Modifier and Type | Method and Description |
---|---|
void |
ConvertUtilsBean.register(Converter converter,
Class<?> clazz)
Register a custom
Converter for the specified destination
Class , replacing any previously registered Converter. |
static void |
ConvertUtils.register(Converter converter,
Class<?> clazz)
Register a custom
Converter for the specified destination
Class , replacing any previously registered Converter. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
AbstractConverter
Base
Converter implementation that provides the structure
for handling conversion to and from a specified type. |
class |
ArrayConverter
Generic
Converter implementation that handles conversion
to and from array objects. |
class |
BigDecimalConverter
NumberConverter implementation that handles conversion to
and from java.math.BigDecimal objects. |
class |
BigIntegerConverter
NumberConverter implementation that handles conversion to
and from java.math.BigInteger objects. |
class |
BooleanArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
BooleanConverter
Converter implementation that handles conversion
to and from Boolean objects. |
class |
ByteArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
ByteConverter
NumberConverter implementation that handles conversion to
and from java.lang.Byte objects. |
class |
CalendarConverter
DateTimeConverter implementation that handles conversion to
and from java.util.Calendar objects. |
class |
CharacterArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
CharacterConverter
Converter implementaion that handles conversion
to and from java.lang.Character objects. |
class |
ClassConverter
Converter implementaion that handles conversion
to and from java.lang.Class objects. |
class |
ConverterFacade
|
class |
DateConverter
DateTimeConverter implementation that handles conversion to
and from java.util.Date objects. |
class |
DateTimeConverter
Converter implementaion
that handles conversion to and from date/time objects. |
class |
DoubleArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
DoubleConverter
NumberConverter implementation that handles conversion to
and from java.lang.Double objects. |
class |
FileConverter
Converter implementaion that handles conversion
to and from java.io.File objects. |
class |
FloatArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
FloatConverter
NumberConverter implementation that handles conversion to
and from java.lang.Float objects. |
class |
IntegerArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
IntegerConverter
NumberConverter implementation that handles conversion to
and from java.lang.Integer objects. |
class |
LongArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
LongConverter
NumberConverter implementation that handles conversion to
and from java.lang.Long objects. |
class |
NumberConverter
Converter implementaion that handles conversion
to and from java.lang.Number objects. |
class |
ShortArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
ShortConverter
NumberConverter implementation that handles conversion to
and from java.lang.Short objects. |
class |
SqlDateConverter
DateTimeConverter implementation that handles conversion to
and from java.sql.Date objects. |
class |
SqlTimeConverter
DateTimeConverter implementation that handles conversion to
and from java.sql.Time objects. |
class |
SqlTimestampConverter
DateTimeConverter implementation that handles conversion to
and from java.sql.Timestamp objects. |
class |
StringArrayConverter
Deprecated.
Replaced by the new
ArrayConverter implementation |
class |
StringConverter
Converter
implementation that converts an incoming
object into a java.lang.String object. |
class |
URLConverter
Converter implementaion that handles conversion
to and from java.net.URL objects. |
Constructor and Description |
---|
ArrayConverter(Class<?> defaultType,
Converter elementConverter)
Construct an array
Converter with the specified
component Converter that throws a
ConversionException if an error occurs. |
ArrayConverter(Class<?> defaultType,
Converter elementConverter,
int defaultSize)
Construct an array
Converter with the specified
component Converter that returns a default
array of the specified size (or null ) if an error occurs. |
ConverterFacade(Converter converter)
Construct a converter which delegates to the specified
Converter implementation. |
Modifier and Type | Interface and Description |
---|---|
interface |
LocaleConverter
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 | Class and Description |
---|---|
class |
BaseLocaleConverter
The base class for all standart type locale-sensitive converters.
|
Modifier and Type | Class and Description |
---|---|
class |
BigDecimalLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.math.BigDecimal object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
BigIntegerLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.math.BigInteger object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
ByteLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Byte object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
DateLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.util.Date object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
DecimalLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Number object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
DoubleLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Double object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
FloatLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.math.BigDecimal object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
IntegerLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Integer object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
LongLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Long object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
ShortLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Short object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
SqlDateLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.sql.Date object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
SqlTimeLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.sql.Time object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
SqlTimestampLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.sql.Timestamp object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
class |
StringLocaleConverter
Standard
LocaleConverter
implementation that converts an incoming
locale-sensitive object into a java.lang.String object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs. |
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.