UMMF::UML::MetaModel - An implementation of UML 1.5 Meta-model (M1).
use UMMF::UML::MetaModel; use UMMF::UML::Export::XMI; use UMMF::UML::Export::Perl; my $f = UMMF::UML::MetaModel->factory; my $model = $f->create('Model'); my $cls = $f->create('Class', 'name' => 'AClass', 'namespace' => $root, ); my $attr = $f->create('Attribute', 'type' => $cls, 'name' => 'foobar', 'visibility' => 'public', 'owner' => $cls, ); # Generate XMI for the model. UMMF::UML::Export::XMI->new()->export_Model($model); # Generate Perl code of the model. UMMF::UML::Export::Perl->new('packagePrefix' => 'My::Package')->export_Model($model); # Generate XMI for the UML meta-model itself!!! my $metamodel = UMMF::UML::MetaModel->model; UMMF::UML::Export::XMI->new()->export_Model($metamodel);
This package allow UML models to be represented and queried from within perl. It implements both the UML meta-meta-model and meta-model.
None exported.
Kurt Stephens, ks.perl@kurtstephens.com 2003/04/06
UMMF::UML::MetaMetaModel
$Revision: 1.10 $
To install UMMF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UMMF
CPAN shell
perl -MCPAN -e shell install UMMF
For more information on module installation, please visit the detailed CPAN module installation guide.