Attribute Class

An attribute corresponds to a UML Attribute. It contains further collections for constraints and Tagged Values. Attributes are accessed from the element Attributes collection.

Associated table in .EAP file   t_attribute

Attribute Attributes

Attribute

Type

Notes

Alias

String

Read/Write

Contains the (optional) Alias property for this attribute. This can be used interchangeably with the Style attribute, below.

 

AllowDuplicates

Boolean

Read/Write

Indicates if duplicates are allowed in the collection.

If the attribute represents a database column this, when set, represents the Not Null option.

 

AttributeGUID

String

Read only

A globally unique ID for the current attribute. This attribute is system generated.

 

AttributeID

Long

Read only

The local ID number of the attribute.

 

ClassifierID

Long

Read/Write

The classifier ID, if appropriate, indicating the base type associated with the attribute, if not a primitive type.

 

Container

String

Read/Write

The container type.

 

Containment

String

Read/Write

The type of containment - Not Specified, By Reference or By Value.

 

Constraints

Collection

Read only

A collection of AttributeConstraint objects, used to access and manage constraints associated with this attribute.

 

Default

String

Read/Write

The initial value assigned to this attribute.

 

IsCollection

Boolean

Read/Write

Indicates if the current feature is a collection or not. If the attribute represents a database column this, when set, represents a Foreign Key.

 

IsConst

Boolean

Read/Write

A flag indicating if the attribute is Const or not.

 

IsDerived

Boolean

Read/Write

Indicates if the attribute is derived (that is, a calculated value).

 

IsID

Boolean

Read/Write

Indicates if the attribute uniquely identifies an instance of the containing Class, or not.

 

IsOrdered

Boolean

Read/Write

Indicates if a collection is ordered or not. If the attribute represents a database column this, when set, represents a Primary Key.

 

IsStatic

Boolean

Read/Write

Indicates if the current attribute is a static feature or not. If the attribute represents a database column this, when set, represents the Unique option.

 

Length

String

Read/Write

The attribute length, where applicable.

 

LowerBound

String

Read/Write

A value for the collection lower boundary.

 

Name

String

Read/Write

The attribute name.

 

Notes

String

Read/Write

Further notes on this attribute.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

ParentID

Long

Read only

Returns the ElementID of the element that this attribute is a part of.

 

Pos

Long

Read/Write

The position of the attribute in the Class attribute list.

 

Precision

String

Read/Write

The precision value.

 

RedefinedProperty

String

Read/Write

Corresponds to the Redefined Property field on the Detail page of the attribute Properties dialog, or the UML redefinedProperty attribute.

Contains a comma separated list of GUIDs.

 

Scale

String

Read/Write

The scale value.

 

Stereotype

String

Read/Write

Sets or gets the stereotype for this attribute.

 

StereotypeEx

String

Read/Write

Provides all the applied stereotypes of the attribute, in a comma-separated list.

 

Style

String

Read/Write

Contains the (optional) Alias property for this attribute. This can be used interchangeably with the Alias attribute, above.

 

SubsettedProperty

String

Read/Write

Corresponds to the Subsetted Property field on the Detail page of the attribute Properties dialog, or the UML subsettedProperty attribute.

Contains a comma separated list of GUIDs.

 

StyleEx

String

Read/Write

Advanced style settings, reserved for the use of Sparx Systems.

 

TaggedValues

Collection of type AttributeTag

 

Read only

A collection of AttributeTag objects, used to access and manage Tagged Values associated with this attribute.

TaggedValuesEx

Collection of type TaggedValue

 

Read only

A collection of TaggedValue objects belonging to the current attribute and the TaggedValuesEx property of its classifier.

Type

String

Read/Write

The attribute type (by name; also see ClassifierID).

 

UpperBound

String

Read/Write

A value for the collection upper boundary.

 

Visibility

String

Read/Write

Identifies the scope of the attribute - Private, Protected, Public or Package.

 

Attribute Methods

Method

Type

Notes

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

 

Update ()

Boolean

Updates the current attribute object after modifying or appending a new item.

If false is returned, check the GetLastError function for more information.