Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

AttributeConstraint Class

An AttributeConstraint is a constraint associated with the current Attribute.

Associated table in .EAP file     t_attributeconstraints

AttributeConstraint Attributes

Attribute

Type

Notes

AttributeID

Long

Read/Write

The ID of the attribute this constraint applies to.

 

Name

String

Read/Write

The name of the constraint.

 

Notes

String

Read/Write

Descriptive notes about the constraint.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

Type

String

Read/Write

The type of constraint.

 

AttributeConstraint Methods

Method

Type

Notes

GetLastError ()

String

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

 

Update ()

Boolean

Update the current AttributeConstraint object after modification or appending a new item.

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