Réserver une Démo
Pré. Proc.

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 GUID of the current context object; empty if an object isn't selected. That is:

  • ElementGUID if an element has context
  • AttributeGUID if an attribute has context
  • MethodGUID if an operation has context.
  • DiagramGUID  if a diagram has context
  • PackageGUID  if a Package has context

ElementID

Long

Notes: Read only

The ID of the current context object; 0 if an object isn't selected. That is:

  • ElementID if an element has context
  • AttributeID if an attribute has context
  • MethodID if an operation has context.
  • DiagramID  if a diagram has context
  • PackageID  if a Package has context

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