
UMMF - UML Meta-Model Framework. UML to code generation via XMI. Implements UML 1.5 meta-model. Provides object-oriented Perl interface for processing UML meta-models and models. Imports XMI. Includes XMI, Perl and Java code generation back-ends.

bin/ummf -e Perl someumlmodel.xmi

1.02

See http://ummf.umleta.com/ and the "examples" directory in the distribution for more information.

UMMF is an open-source implementation of a UML Meta-meta-model, for the purposes of reifying UML meta-model implementations and to provide a platform for building flexible UML transformation tools.
It is written in Perl and provides an almost complete specification of the UML 1.5 meta-model in a human and machine-readable meta-meta-model description language.
The meta-meta-model description is used to generate implementations of the UML meta-model in XMI, Perl and Java and other languages. Thus, one specification of the meta-model can generate meta-model implementations in many programming languages. Once a programming language has been targeted with an exporter, code can be generated for UML meta-models and other models.

The goal of UMMF is processing of UML models and meta-models in a variety of implementation languages for the purpose of transforming UML models.
UMMF is self-hosting; for example: the Perl UMMF:UML::MetaModel package is generated by bootstrapping from the meta-meta-model. The meta-meta-model is specified with the same specification as the meta-model.
Models can be imported from popular UML editors via XMI 1.0 and 1.2. Meta-models and models can currently exported to XMI 1.2.
Code generated from UML models by UMMF is reflective; models can reflect on their own meta-models. For example, the code exporters generate a __classifier() method for each Class that will return the meta-model Classifier object for the model object.
Many inexpensive UML editors have inflexible or non-existant code generation tools. Generating code using XSLT on XMI is an adventure into the pain of a W3C-sponsored hell.
UMMF allows you to control how your Model will be translated into code; add your special archtectural or environmental support without relying on third-party proprietary tools!
UMMF can provide a base UML meta-model implementation for other UML tools.

UMMF transforms UML models to simplify code generation; for example:
Additional transformations will be developed to support other architectural concerns.

As of 2006/05/13 (v1.02), UMMF can:
"# UMMF-Lang: Perl" or "// UMMF-Lang: Java" comments to delimit different method implementations.Use of XMI for meta-model storage has been implemented and tested.
Try running "bin/ummf -e XMI UML-1.5" !!!

As of 2003/09/31:

The SourceForge site, http://sourceforge.net/projects/ummf/ or a pre-built version from CPAN. You may want to check the CVS repository for the latests changes; point your browser at http://cvs.sourceforge.net/viewcvs.py/ummf/ummf/1.1/.
More information is available at http://ummf.umleta.com/

As of 2004/03/30, UMMF requires:
Bootstrapping dependencies:


perl sbin/ummf_install.pl
This will build the UML meta-model classes in gen/perl and gen/java.
This will build the bin, gen/perl and doc/html directories.

Low-volume list for new releases and other announcements.
List for UMMF user issues, problems and support (may become high-volume)
Low-volume list for UMMF developers only.
CVS notifications (may become high-volume)

UMMF 1.x is not namespace compatable with UMMF 0.x.
However, most code that used UML metamodel packages named "UMMF::UML::MetaModel::..." will now work with "UMMF::UML1_5::..".
Most other modules under "UMMF::UML::..." moved to "UMMF::Core::..." or "UMMF::Boot::...".

Defined to be true during bootstrapping into gen/perl.
List of ":"-separated paths to search for UMMF resources. If you are using the compiled CPAN distribution, you must include the "data" directory from the distribution in this variable, or you can copy the "data" directory to the directory named "UMMF" where "UMMF.pm" was installed by make install.
List of ":"-separated paths to search for UMMF Exporter templates.

None exported.

Kurt Stephens, kurt@umleta.com 2006/05/13


$Revision: 1.17 $

UMMF->resource_path($type);
Returns a list of directories to search for files of type $type.
my $dir = UMMF->tmp_dir;
Returns directory to be used for temporary files.
my $filename = UMMF->make_tempfile;
Returns a temporary file.