Objects
Topics
|
|
|
Objects
|
Objects are created in Enterprise Architect by generating 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 element, as it enables Enterprise Architect to synchronize with the element and makes it possible to create a connector to that Class in a transformation.
|
objectTypes
objectProperties
XRef
Tags
Attributes
Operations
Parameters
XRef
|
objectTypes
|
objectType is one of the following object types:
• | InterruptibleActivityRegion |
|
|
objectProperties
|
objectProperties is zero, or one instance of one or more of the following properties:
|
|
Attributes
|
Attributes are created with the same structure as objects, and include the following properties:
and the following elements:
|
|
Operations
|
Operations are created with the same structure as objects, and include the following properties:
and the following elements:
|
|
Parameters
|
Parameters are created with the same structure as objects, and include the Tag element and the following properties:
|
|
Tags
|
|
|
Special Cases:
The following table represents some special cases of object definitions.
|
|
|
Packages
|
Packages differ from other objects in the following ways:
• | A reduced set of properties of alias, author, name, namespaceRoot, notes, scope, stereotype and version |
• | The extra property namespaceRoot |
• | Must have a name specified |
• | Name can be a qualified name; when a qualified name is specified the properties given are applied only to the final package |
• | Can contain other packages |
• | Can't contain attributes and operations |
|
|
XRef
|
Cross references are defined using the transform statements. The properties include:
|
Cross References
XRef element
|
Tables
|
Tables are a special sort of object, with the following differences from other object types:
• | Can include columns and primary keys |
• | Cannot include attributes |
|
Foreign Key
|
Columns
|
Columns are similar to attributes, but have an autonumber element containing Startnum and 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-2011 Sparx Systems Pty Ltd.