Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
MethodConstraint Class
A MethodConstraint is a condition imposed on a method. It is accessed through either the Method PreConditions or Method PostConditions collection.
Associated table in .EAP file: t_operationpres and t_operationposts
MethodConstraint Attributes
Attribute |
Type |
Notes |
---|---|---|
MethodID |
Long |
Read/Write. The local ID of the associated method. |
Name |
String |
Read/Write. The name of the constraint. |
Notes |
String |
Read/Write. Descriptive notes about this constraint. |
ObjectType |
Read only. Distinguishes objects referenced through a Dispatch interface. |
|
Type |
String |
Read/Write. The constraint type. |
MethodConstraint 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 MethodConstraint object after modification or appending a new item. If false is returned, check the GetLastError function for more information. |