Metapackage

Home > Metamodelling Concepts > Metapackage

A metapackage is part of a metamodel and contains one or more classes.

A class has to import a foreign package in order to reach the classes of that package. And a package import is only possible if the foreign package resides in the very same metamodel or is part of an imported metamodel.

In SDL metapackages are represented by a corresponding folder hierarchy underneath their metamodel folder. Classes reside in their particular package folder.

+ OOMEGA Core.metamodel
   + org
      + oomega
         + base
         + meta
            AbstractSyntax.model
            AttributeClass.model
            ...
         + persistence
         + query
         + syntax

Package membership and package import statements are mentioned explicitly in the class file content. Please notice e.g. the import statement in the class file AttributeClass.model:

package org.oomega.meta;

import org.oomega.base.*;
...

Next chapter: Entity Class and Attribute Class

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.