Transmorph is a Java library used to convert a Java object of one type into an object of another type (with another signature, possibly parameterized). It supports conversion for primitives and objects, conversion to multidimensional arrays, conversion to parameterized collections and types, and jars for JDK 1.4 and JDK 1.5. It has no dependencies. It is easy to add more converters. It can convert to a type given either its Java type (class) or signature.
|Tags||Software Development Libraries Java Libraries|
|Operating Systems||OS Independent|
Release Notes: MapToBean can now handle an interface as a destination type as long as IMapToBeanMapping can provide a concrete type from the map and destination type. The code now makes sure that converters do not return null when converting to a primitive type. SameTypeConverter converter was added, which can be used to clone an object. NumberToNumber converter has been improved: conversion to BigInteger and BigDecimal have been improved. A NumberComparator comparator has been added to compare numbers (such as comparing an Integer to a Long or an Integer to a Float).
Release Notes: New converters have been added.
Release Notes: New converters were added.
Release Notes: TypeReference, which is based on Neal Gafter's Super Type Tokens, is now used to overcome type erasure. This makes Transmorph easier to use. Signature parsing is now separated from type conversion so you don't have to provide a classloader when you want to convert from one type to another.
Release Notes: This release adds new converters (SerializableConverter and CloneableConverter). It modifies BeanToBeanInjector, which will now inject from a subclass bean to a superclass bean without needing a mapping. There are some changes to the Transmorph class (more methods using generics).