UMMF::Import::UMMFModel - Parses an ad-hoc metamodel description.
use UMMF::Import::UMMFModel; my $importer = UMMF::Import::UMMFModel->new('factory' => $factory); my $importer->import($metametamodel_desc);
This package is used to generate a UML model from the UML metamodels and other metamodel definitions found in lib/ummf/model.
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.
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; } } }
None exported.
Support MOF and UML 2.0 syntaxes.
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.
Kurt Stephens, kstephens@users.sourceforge.net 2003/04/06
UMMF::Core::Factory UMMF::Core::Builder
$Revision: 1.4 $
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.