The Morph Framework

Reference Documentation

Matthew Sgarlata

Version 1.1.1

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.

June 13, 2008


Table of Contents

Preface
1. Introduction
1.1. Getting Started
1.1.1. Morph.convert
1.1.2. Morph.copy
1.2. Customizing Morph
1.3. Concepts
1.3.1. Transformers
1.3.2. Reflectors
1.3.3. Wrappers
1.3.4. Languages
1.3.5. Contexts
2. Transformers
2.1. Introduction
2.2. The Converter Interface
2.3. The Copier Interface
2.4. Internationalization
2.5. The Transformer Interface
2.6. Combining Transformers
2.7. Transformer Implementations
2.7.1. Pre-Built Converters
2.7.2. Pre-Built Copiers
2.7.3. Writing Custom Transformers
2.8. Transforming Arbitrary Object Graphs
2.8.1. Introduction
2.8.2. Example
2.8.2.1. Transforming VehicleDAO[] to VehicleVO[]
2.8.2.2. Transforming PersonDAO[] to String[]
2.8.2.3. Transforming AddressDAO[] to String
2.8.2.4. Transforming PersonDAO[] to PersonVO[]
3. Wrappers
3.1. Introduction
4. Contexts
4.1. Introduction