EZMorph is simple java library for transforming an Object to another Object.
EZMorph's key strenghts are:
- Supports transformations for primitives and Objects
- Supports transformations for multidimensional arrays
- Supports transformations with DynaBeans
- JDK 1.3.1 compatible
- Small memory footprint (~76K)
ArrayAssertions
. JUnit 3.x does not have an
assertEquals()
method for asserting array equality, and JUnit 4.x has a limited one (it only supports Object[] not primitive arrays). With
ArrayAssertions
is possible to compare a boolean[] with a boolean[] or even a Boolean[], an those arrays can be multidimensional too. EZMorph began life as the converter package on
Json-lib but seeing that the features provided were more generic than JSON parsing, it became a project on its own.
Related projects
There are other projects that perform Objetc to Object conversions:Project name | Description |
---|---|
Commons-Beanutils | ConvertUtils -> Utility methods for converting String scalar values to objects of the specified Class, String arrays to arrays of the specified Class. |
Commons-Lang | ArrayUtils -> Operations on arrays, primitive arrays (like int[]) and primitive wrapper arrays (like Integer[]). |
Commons-Convert | Commons-Convert aims to provide a single library dedicated to the task of converting an object of one type to another. The first stage will focus on Object to String and String to Object conversions. |
Morph | Morph is a Java framework that eases the internal interoperability of an application. As information flows through an application, it undergoes multiple transformations. Morph provides a standard way to implement these transformations. |
Lorentz | Lorentz is a generic object-to-object conversion framework. It provides a simple API to convert a Java objects of one type into an object of another type. |
Spring framework | Spring has an excellent support for PropertyEditors, that can also be used to transform Objects to/from Strings. |
Dozer | Dozer is a powerful, yet simple Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types. |