5.2.2.1. Package

<package> is the highest element inside the model xml tree and may contain multiple <object> elements. The number of <package> elements in <model> is not limited. It can thus be used to group your objects, which allows MetaFactory to execute group specific code instructions.

Listing 5.14 <package> structure
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<model>
        ...

        <package name="yourModelPackageA">
                0 or more <metadata></metadata>
                0 or more <object name="yourModelObject01">
        </package>
        <package name="yourModelPackageB">
                0 or more <metadata></metadata>
                0 or more <object name="yourModelObject01">
        </package>

        ...
</model>

Attributes

Table 5.14 attributes of <package/>

Name

Details

Required

name

Name of the package. Must be unique.

mandatory

Sub elements

Table 5.15 <package/> sub elements

Name

Details

Number

metadata

This element can contain properties that are specific to the package.

0 .. n

object

Objects define the data entities in the MetaFactory model. They live inside the package in which they are defined.

0 .. n