NAME
UMMF::Import::UMMFModel - Parses an ad-hoc metamodel description.
SYNOPSIS
use UMMF::Import::UMMFModel;
my $importer = UMMF::Import::UMMFModel->new('factory' => $factory);
my $importer->import($metametamodel_desc);
DESCRIPTION
This package is used to generate a UML model from the UML metamodels and other metamodel definitions found in lib/ummf/model
.
The model can then be passed to UMMF::Export::Perl or other exporters.
This importer sends ModelElement construction events to a UMMF::Core::Builder object during parsing. The builder creates the ModelElement objects through a factory and connects them up after the are all instantiated.
USAGE
Basic syntax:
Model "MyModel" {
Package Bar {
Primitive Integer;
Primitive Float;
Primitive String;
Class ClassA {
attr1 : Integer;
attr2 : String[0..*] {unordered};
}
Class ClassB : ClassA {
attr3 : ClassA;
}
}
}
EXPORT
None exported.
TODO
Support MOF and UML 2.0 syntaxes.
NOTES
The MOF specifies interfaces to a MOF meta-meta-model with CORBA IDL. Rather that having to analyze the IDL to infer Associations; I first started with this mini-language. At some point however, maintaining the MetaMetaModel.spec document will be more difficult as UML progesses.
AUTHOR
Kurt Stephens, kstephens@users.sourceforge.net 2003/04/06
SEE ALSO
UMMF::Core::Factory UMMF::Core::Builder
VERSION
$Revision: 1.4 $