org.apache.commons.beanutils.converters |
Package Documentation for org.apache.commons.beanutils.converters
Standard implementations of the
Converter
interface that are pre-registered with
ConvertUtils
at startup time.
|
Java Source File Name | Type | Comment |
AbstractArrayConverter.java | Class | Convenience base class for converters that translate the String
representation of an array into a corresponding array of primitives
object. |
AbstractConverter.java | Class | Base
Converter implementation that provides the structure
for handling conversion to and from a specified type. |
ArrayConverter.java | Class | Generic
Converter implementaion that handles conversion
to and from array objects.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
The main features of this implementation are:
- Element Conversion - delegates to a
Converter ,
appropriate for the type, to convert individual elements
of the array.
|
ArrayConverterTestCase.java | Class | Test Case for the ArrayConverter class. |
BigDecimalConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.math.BigDecimal objects.
This implementation can be configured to handle conversion either
by using BigDecimal's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
BigDecimalConverterTestCase.java | Class | Test Case for the DoubleConverter class. |
BigIntegerConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.math.BigInteger objects.
This implementation can be configured to handle conversion either
by using BigInteger's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
BigIntegerConverterTestCase.java | Class | Test Case for the BigInteger class. |
BooleanArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of boolean. |
BooleanArrayConverterTestCase.java | Class | Test conversions of String[]->boolean[] and String->boolean[].
Note that the tests here don't rigorously test conversions of individual
strings to booleans, as the BooleanArrayConverter class uses a
BooleanConverter instance to do those conversions, and the BooleanConverter
class has its own unit tests. |
BooleanConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from Boolean objects.
org.apache.commons.beanutils.Converter implementaion that
handles conversion to and from java.lang.Boolean objects.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
By default any object whose string representation is one of the values
{"yes", "y", "true", "on", "1"} is converted to Boolean.TRUE, and
string representations {"no", "n", "false", "off", "0"} are converted
to Boolean.FALSE. |
BooleanConverterTestCase.java | Class | |
ByteArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of byte. |
ByteConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Byte objects.
This implementation can be configured to handle conversion either
by using Byte's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
ByteConverterTestCase.java | Class | Test Case for the ByteConverter class. |
CalendarConverter.java | Class | DateTimeConverter implementation that handles conversion to
and from java.util.Calendar objects. |
CalendarConverterTestCase.java | Class | Test Case for the CalendarConverter class. |
CharacterArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of char. |
CharacterConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.lang.Character objects.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
author: Craig R. |
CharacterConverterTestCase.java | Class | Test Case for the CharacterConverter class. |
ClassConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.lang.Class objects. |
ClassConverterTestCase.java | Class | Test Case for the ClassConverter class. |
ClassReloader.java | Class | A special classloader useful for testing j2ee-like scenarios.
In some tests we want to be able to emulate "container" frameworks,
where code runs in a hierarchy of classloaders, and certain classes may
be loaded by various classloaders in the hierarchy.
Normally this is done by having certain jars or class-file-directories
in the classpath of some classloaders but not others. |
ClassReloaderTestCase.java | Class | Tests for the ClassReloader utility class. |
ConverterFacade.java | Class | Provides a facade for
Converter implementations
preventing access to any public API in the implementation,
other than that specified by
Converter . |
ConverterTestSuite.java | Class |
Created a test suite so that new test cases can be added here without having to
edit the build.xml. |
DateConverter.java | Class | DateTimeConverter implementation that handles conversion to
and from java.util.Date objects. |
DateConverterTestBase.java | Class | Abstract base for <Date>Converter classes. |
DateConverterTestCase.java | Class | Test Case for the DateConverter class. |
DateTimeConverter.java | Class | org.apache.commons.beanutils.Converter implementaion
that handles conversion to and from date/time objects. |
DoubleArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of double. |
DoubleConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Double objects.
This implementation can be configured to handle conversion either
by using Double's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
DoubleConverterTestCase.java | Class | Test Case for the DoubleConverter class. |
FileConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.io.File objects. |
FileConverterTestCase.java | Class | Test Case for the FileConverter class. |
FloatArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of float. |
FloatConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Float objects.
This implementation can be configured to handle conversion either
by using Float's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
FloatConverterTestCase.java | Class | Test Case for the FloatConverter class. |
IntegerArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of int. |
IntegerConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Integer objects.
This implementation can be configured to handle conversion either
by using Integer's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
IntegerConverterTestCase.java | Class | Test Case for the IntegerConverter class. |
LongArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of long. |
LongConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Long objects.
This implementation can be configured to handle conversion either
by using Long's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
LongConverterTestCase.java | Class | Test Case for the LongConverter class. |
MemoryTestCase.java | Class | This class provides a number of unit tests related to classloaders and
garbage collection, particularly in j2ee-like situations. |
NumberConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.lang.Number objects. |
NumberConverterTestBase.java | Class | Abstract base for <Number>Converter classes. |
ShortArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into a primitive array of short. |
ShortConverter.java | Class | NumberConverter implementation that handles conversion to
and from java.lang.Short objects.
This implementation can be configured to handle conversion either
by using Short's default String conversion, or by using a Locale's pattern
or by specifying a format pattern. |
ShortConverterTestCase.java | Class | Test Case for the ShortConverter class. |
SqlDateConverter.java | Class | DateTimeConverter implementation that handles conversion to
and from java.sql.Date objects.
This implementation can be configured to handle conversion either
by using java.sql.Date's default String conversion, or by using a
Locale's default format or by specifying a set of format patterns.
See the
DateTimeConverter documentation for further details.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
author: Craig R. |
SqlDateConverterTestCase.java | Class | Test Case for the
SqlDateConverter class. |
SqlTimeConverter.java | Class | DateTimeConverter implementation that handles conversion to
and from java.sql.Time objects.
This implementation can be configured to handle conversion either
by using java.sql.Time's default String conversion, or by using a
Locale's default format or by specifying a set of format patterns.
See the
DateTimeConverter documentation for further details.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
author: Craig R. |
SqlTimeConverterTestCase.java | Class | Test Case for the
SqlTimeConverter class. |
SqlTimestampConverter.java | Class | DateTimeConverter implementation that handles conversion to
and from java.sql.Timestamp objects.
This implementation can be configured to handle conversion either
by using java.sql.Timestamp's default String conversion, or by using a
Locale's default format or by specifying a set of format patterns.
See the
DateTimeConverter documentation for further details.
Can be configured to either return a default value or throw a
ConversionException if a conversion error occurs.
author: Craig R. |
SqlTimestampConverterTestCase.java | Class | Test Case for the
SqlTimestampConverter class. |
StringArrayConverter.java | Class | Standard
org.apache.commons.beanutils.Converter implementation that converts an incoming
String into an array of String objects. |
StringArrayConverterTestCase.java | Class | |
StringConverter.java | Class | org.apache.commons.beanutils.Converter implementation that converts an incoming
object into a java.lang.String object.
Note that ConvertUtils really is designed to do string->object conversions,
and offers very little support for object->string conversions. |
URLConverter.java | Class | org.apache.commons.beanutils.Converter implementaion that handles conversion
to and from java.net.URL objects. |
URLConverterTestCase.java | Class | Test Case for the URLConverter class. |