Prev | Next |
Objects
Objects are generated in a transformation as text in this form:
objectType
{
objectProperties*
XRef{xref}*
Tag{tag}*
Attribute{attributes}*
Operation{operations}*
Classifier{classifiers}*
Parameter{parameters}*
}
For example:
Class
{
name = "Example"
language = "C++"
Tag
{
name = "defaultCollectionClass"
value = "List"
}
Attribute
{
name = "count"
type = "int"
}
}
Every object created in a transformation should include an XRef syntax element (see the end of this topic), as it helps the system to synchronize with the object and makes it possible to create a connector to that Class in the transformation.
Syntax elements in the code
Element |
Detail |
See also |
---|---|---|
objectType |
objectType is one of these:
|
|
objectProperties |
objectProperties is zero, or one instance of one or more of these:
|
|
Attribute |
Attribute has the same structure as objectType, and includes these properties:
Attribute also includes these elements:
|
|
Operation |
Operation has the same structure as objectType, and includes these properties:
Operation also includes these elements:
|
|
Parameter |
Parameter has the same structure as objectType, and includes the Tag element and these properties:
|
|
Tag |
Tag has these properties:
|
Special Cases
Certain types of object have variations of the object definition syntax.
Object |
Detail |
See also |
---|---|---|
Packages |
Packages differ from other objects in these ways:
|
|
XRef |
Cross references are defined using the transform statements. The properties include:
|
Cross References |
Tables |
Tables are a special type of object, with these differences from other object types:
|
Foreign Key |
Columns |
Columns are similar to attributes, but have an autonumber element containing Startnum and its increment, and these added properties:
In the column definition, you cannot assign a value to the NotNull, PrimaryKey or Unique properties. |