++ed by:
ZMUGHAL

1 PAUSE user(s)

Kurt Stephens

NAME

UMMF::UML::MetaModel - An implementation of UML 1.5 Meta-model (M1).

SYNOPSIS

  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);

DESCRIPTION

This package allow UML models to be represented and queried from within perl. It implements both the UML meta-meta-model and meta-model.

USAGE

PATTERNS

EXPORT

None exported.

AUTHOR

Kurt Stephens, ks.perl@kurtstephens.com 2003/04/06

SEE ALSO

UMMF::UML::MetaMetaModel

VERSION

$Revision: 1.10 $

METHODS