Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Constraint Class
A Constraint is a condition imposed on an element. Constraints are accessed through the Element Constraints collection.
Associated table in .EAP file: t_objectconstraints
Constraint Attributes:
Attribute |
Type |
Notes |
---|---|---|
Name |
String |
Read/Write The name of the constraint (that is, the constraint).
|
Notes |
String |
Read/Write Notes about the constraint.
|
ObjectType |
Read only Distinguishes objects referenced through a Dispatch interface.
|
|
ParentID |
Long |
Read only The ElementID of the element to which this constraint applies.
|
Status |
String |
Read/Write The current status of the constraint.
|
Type |
String |
Read/Write The constraint type.
|
Weight |
Long |
Read/Write A weighting factor.
|
Constraint Methods:
Method |
Type |
Notes |
---|---|---|
GetLastError () |
String |
Returns a string value describing the most recent error that occurred in relation to this object. This function is rarely used as an exception is thrown when an error occurs.
|
Update () |
Boolean |
Update the current Constraint object after modification or appending a new item. If false is returned, check the GetLastError function for more information.
|