Documentation

ETPackageDescription class documentation

ETPackageDescription : ETModelElementDescription <ETCollection, ETCollectionMutation>

Collection of related entity descriptions, usually equivalent to a data model.

AuthorsQuentin Mathe
Declared inETPackageDescription.h

Overview

A package can also include extensions to other entity descriptions. An extension is a property description whose owner doesn't belong to the package it gets added to.

For example, a category can be described with a property description array, and these property descriptions packaged as extensions to be resolved later (usually when the package is imported/deserialized).

From a Model Builder perspective, a package is the document you work on to specify a data model.


Metamodel Description

+ (ETEntityDescription *) newEntityDescription

Self-description (aka meta-metamodel).

    Packaged Entity Descriptions

    - (void) addEntityDescription: (ETEntityDescription *)anEntityDescription

    Adds the given entity to the package, the package becomes its owner.

    Will remove every property from the package that extends this entity and previously added with -addPropertyDescription: or -setPropertyDescriptions: .

      - (void) removeEntityDescription: (ETEntityDescription *)anEntityDescription

      Removes the given entity from the package.

        Packaged Entity Extensions

        - (void) addPropertyDescription: (ETPropertyDescription *)propertyDescription

        Adds the given entity extension to the package.

        The property owner must be the entity to be extended.

        Raises an NSInvalidArgumentException when the property owner is nil or already belongs to the package.

          - (void) removePropertyDescription: (ETPropertyDescription *)propertyDescription

          Removes the given entity extension from the package.

            Runtime Consistency Check

            - (void) checkConstraints: (NSMutableArray *)warnings

            Checks the receiver conforms to the FM3 constraint spec and adds a short warning to the given array for each failure.