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<model>
 2        ...
 3
 4        <package name="yourModelPackageA">
 5                0 or more <metadata></metadata>
 6                0 or more <object name="yourModelObject01">
 7        </package>
 8        <package name="yourModelPackageB">
 9                0 or more <metadata></metadata>
10                0 or more <object name="yourModelObject01">
11        </package>
12
13        ...
14</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