Consider code generators

Some types of classes share the same basic structure, and differ only in details. Type-safe enumerations and data-centric Model Objects are two examples. In such cases, aids for rapid code generation become very useful. These may take several forms: Code generators often use simple, ad hoc textual descriptions as input. The web site is a useful reference for code generation.

The extensive use of code generation is often called Model-Driven Development (MDD), or Model-Driven Architecture (MDA).