UMMF::Import::UMMFModel - Parses an ad-hoc metamodel description.


UMMF documentation  | view source Contained in the UMMF distribution.

Index


NAME

Top

UMMF::Import::UMMFModel - Parses an ad-hoc metamodel description.

SYNOPSIS

Top

  use UMMF::Import::UMMFModel;
  my $importer = UMMF::Import::UMMFModel->new('factory' => $factory);
  my $importer->import($metametamodel_desc);

DESCRIPTION

Top

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

Top

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

Top

None exported.

TODO

Top

Support MOF and UML 2.0 syntaxes.

NOTES

Top

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

Top

Kurt Stephens, kstephens@users.sourceforge.net 2003/04/06

SEE ALSO

Top

UMMF::Core::Factory UMMF::Core::Builder

VERSION

Top

$Revision: 1.4 $

METHODS

Top


UMMF documentation  | view source Contained in the UMMF distribution.