Objects
Objects are generated in a transformation as text in the following 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
|
|
|
objectType
|
objectType is one of these:
· | InterruptibleActivityRegion |
|
|
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.
|
|
|
Packages
|
Packages differ from other objects in the following ways:
· | They have a reduced set of properties: alias, author, name, namespaceRoot, notes, scope, stereotype and version |
· | The property namespaceRoot is only given to Packages |
· | A name must be specified for each Package |
· | The name property can be a qualified name; when a qualified name is specified, the properties given are applied only to the final Package |
· | Only Packages can contain other Packages |
· | Packages can't contain attributes and operations |
|
|
XRef
|
Cross references are defined using the transform statements. The properties include:
|
Cross References
|
Tables
|
Tables are a special type of object, with the following differences from other object types:
· | They can include columns and primary keys |
· | They cannot include attributes |
|
Foreign Key
|
Columns
|
Columns are similar to attributes, but have an autonumber element containing Startnum and its increment, and the following added properties:
In the column definition, you cannot assign a value to the NotNull, PrimaryKey or Unique properties.
|
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2015 Sparx Systems Pty Ltd.