Book a Demo

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

Prev Next

EAContext Class

The EAContext Class provides a description of a single selected item. The fields with values depend on the location of the selected item.

EAContext Attributes

Atttribute

Remarks

See also

Alias

String

Notes: Read only

The Alias of the context item.

BaseType

String

Notes: Read only

Returns the base UML type of the context item.

ContextType

ContextType

Notes: Read only

Distinguishes objects referenced through a Dispatch interface.

ElementGUID

String

Notes: Read only

The Element GUID of the current element; empty if an element isn't selected.

ElementID

Long

Notes: Read only

The Element ID of the current element; 0 if an element isn't selected.

Locked

Boolean

Notes: Read only

Indicates if the context item is locked.

MetaType

String

Notes: Read only

Returns the metatype of the context item.

Name

String

Notes: Read only

The name of the context item.

ObjectType

ObjectType

Notes: Read only

Distinguishes objects referenced through a Dispatch interface.

ObjectType

EAContext Methods

Method

Remarks

See also

HasStereotype (String stereo)

Boolean

Returns: True if the stereotype is applied to an object.

Parameters

  • stereo: String - the stereotype to check against the context object, to see if has been applied