Package org.databene.commons.converter

Provides implementation and framework for org.databene.model.Converter

See:
          Description

Class Summary
AbstractConverter<S,T> Abstract implementation of the Converter interface, providing management of source and target type.
AccessingConverter<C,V> Wraps an Accessor into a Converter interface.
AnyConverter<E> Converts any source type to any target type.
ArrayConverter<S,T> Converts arrays from one component type to arrays of another component type.
ArrayElementExtractor<E> Retrieves the value at a given array index from an array.
ArrayTypeConverter<T> Converts arrays from one component type to arrays of another component type.
Base64ToByteArrayConverter Converts base64-encoded Strings to byte arrays.
Boolean2NumberConverter<T extends Number> Converting Boolean values to Numbers: false to 0, true to 1.
BooleanMapper<T> Maps true, false and null to configured aliases, e.g. '1', '0' and '?'.
ByteArray2StringConverter Converts byte arrays to Strings based on a character encoding, e.g.
ByteArrayToBase64Converter Converts byte arrays to base64 strings and vice versa.
Calendar2DateConverter Converts Calendar objects to Dates.
CaseConverter Converts a String's characters to upper or lower case.
CharArray2StringConverter Combines the characters of a character array to a String.
Class2StringConverter Converts a Class object to its fully qualified class name.
CommaSeparatedListConverter<T> Converts a String with a comma-separated list to an array.
ConstructorInvoker<S,T> Converter implementation which invokes a constructor of the target class with the source object as argument.
ConverterChain<S,T> Aggregates other (sub) converters and implements conversion by subsequent invocation of the sub generators, each converting the result of the preceding converter.
ConverterManager Manages converters.
ConverterProxy<S,T> Parent class for Converters that act as a proxy to another converter instance.
ConverterTest Parent class for Converter test classes.
ConverterWrapper<S,T> Parent class for Converters that hold a reference to another converter instance.
ConvertingIterable<S,T> Iterable that provides ConvertingIterators.
Date2CalendarConverter Converts Date into Calendar Objects and back.
Date2DurationConverter Interprets a Date as duration specification, e.g. '0000-00-00T00:00:00.001' as one millisecond, '0001-00-00T00:00:00.000' as one year.
Date2LongConverter Converts a Date into the number of milliseconds since 1970-01-01 in a certain time zone and back.
Date2TimestampConverter Converts Date to Timestamp Objects.
DateString2DurationConverter Converts a date in String format to a duration in milliseconds.
Enum2StringConverter<E extends Enum<E>> Converts an enum value to its String representation.
FormatBasedConverter<S,T> Parent class for Converters that use a Format instance for parsing Strings or formatting other objects.
FormatFormatConverter<S> Converts an object to a String by using a java.lang.Format object's format() method.
FormatHolder Holds format strings for date and number objects.
JavaType Utility class for operations related to Java types, e.g. mapping number types and their wrappers.
LiteralParser Parses the literal representation a simple type into an appropriate Java object of type Boolean, Integer, Long, Double, Date or String.
Locale2StringConverter Converts a Locale to its String representation.
Long2DateConverter Interprets Long values as milliseconds since 1970-01-01 and converts them to Date objects.
MessageConverter Renders a single object or an array of objects into a String, similar to the java.text.MessageFormat.
MultiConverterWrapper<S,T> Parent class for Converter implementations that holds references to several other converter objects.
NoOpConverter<E> Returns the argument to be converted.
NullSafeConverterProxy<S,T> Wraps another Converter and adds the feature of converting null values to a predefined value.
Number2BooleanConverter<S extends Number> Converts Numbers to Booleans, interpreting zero as false, any other value as true.
Number2IntegerConverter Converts Number objects to Integers.
Number2StringConverter Formats a number as a String.
NumberFormatBasedConverter<S,T> Holds a NumberFormat and exhibits properties for its configuration.
NumberFormatter Formats Number objects as String using NumberFormat.
NumberParser Converts Strings to Numbers using a DecimalFormat.
NumberToNumberConverter<S extends Number,T extends Number> Converts Number objects of one type to another Number type.
ParseFormatConverter<T> Converts a String to an object by using a java.lang.Format object's format() method.
PrintfConverter Converter implementation that uses a Formatter to render argument objects in C-like printf format.
PropertyExtractor<B,P> Converter implementation that reads a property form a JavaBean.
PropertyResourceBundleConverter Converts key strings to localized texts by using a ResourceBundle.
RegexReplacer Converts strings using a regular expression.
SimpleConverter<S,T> Parent class for Converters that are neither parallelizable nor thead-safe.
SourceClassMethodInvoker<S,T> Converter implementation which invokes a no-arg method on the source object.
SqlDate2UtilDateConverter Converts Date objects to Date objects.
StaticTargetClassMethodInvoker<S,T> Converter implementation which invokes a static method of an arbitrary class with the object to be converted as argument.
String2BooleanConverter Parses a String as a Boolean.
String2ByteArrayConverter Converts strings to byte arrays based on a character encoding, e.g.
String2CharConverter Converts Strings of length 1 to Characters, Strings of length 0 to null.
String2ClassConverter Interprets a String as class name and returns the corresponding class object.
String2ConverterConverter Converts Strings to Converters and vice versa.
String2DateConverter<E extends Date> Converts Strings of standard date(time) format (yyyy-MM-dd[Thh:mm[:ss[.SSS]]]) to dates.
String2DateFormatConverter Parses a String as DateFormat.
String2EnumConverter<E extends Enum> Instantiates enum instances by their name.
String2GregorianCalendarConverter Parses a String as a Calendar.
String2LocaleConverter Instantiates Locales by their code, e.g. de_DE.
String2NumberConverter<T extends Number> Converts Strings to Numbers.
String2NumberFormatConverter Parses a String as NumberFormat.
String2PatternConverter Converts a String to a Pattern.
String2TimeConverter Parses a String as a time value.
String2TimestampConverter Parses Strings converting them to Timestamps.
SubArrayExtractor Extracts a sub array from another array.
SubstringExtractor Extracts a sub string from a string.
SynchronizedConverterProxy<S,T> Proxy class for (unsafe) Converters that synchronizes calls to the wrapped converter instance.
ThreadSafeConverter<S,T> Parent class for Converter implementations which support all modes of threaded usage.
Time2StringConverter Converts Time objects to Strings.
Timestamp2DateConverter Converts Timestamps to Dates.
TimestampFormatter Formats a Timestamp as String.
ToArrayConverter Converts arrays and collections to arrays and other object to an array of size 1.
ToCollectionConverter<C extends Collection> Converts arrays and collections to collections of same content, everything else is converted to a collection of size 1.
ToHashCodeConverter Converts an arbitrary object to a hash code using the method hashCode().
ToLowerCaseConverter Converts Strings to lowercase.
ToStringConverter Converts an object to a String by using its toString() method.
ToStringMethodInvoker<E> Converter implementation which invokes the toString() method on the source object.
ToUpperCaseConverter Converts Strings to upper case.
UniqueStringConverter Assures uniqueness for all processed Strings by appending unique numbers to recurring instances.
URLDecodeConverter Decodes a String from the application/x-www-form-urlencoded MIME format.
URLEncodeConverter Converts Strings to their URL-encoded representation.
UtilDate2SqlDateConverter Converts a java.util.Date to a java.sql.Date.
 

Package org.databene.commons.converter Description

Provides implementation and framework for org.databene.model.Converter



Copyright © 2010. All Rights Reserved.