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

Operation Field Substitution Macros

The Operation field substitution macros provide access to data concerning operations in the model. The macro names are in Camel casing. Macros that represent checkboxes return a value of T if the box is selected; otherwise the value is empty.

Operation field substitution macros

Macro Name

Description/Result

See also

opAbstract

Operation dialog: Virtual checkbox.

 

 

opAlias

Operation dialog: Alias.

 

 

opBehavior

Operation Behavior dialog: Behavior.

 

 

opCode

Operation Behavior dialog: Initial Code.

 

 

opConcurrency

Operation dialog: Concurrency.

 

 

opConst

Operation dialog: Const checkbox.

 

 

opGUID

The unique GUID for the current operation.

 

 

opHasSelfRefParam

Scans the list of parameters in the current Operation, returning T if one type is the Class reference (this could be ClassA* or ClassA&, depending on the value of the genOptCOperationRefParamStyle code generation option field substitution macro).

 

 

opImplMacros

A space-separated list of macros defined in the implementation of this operation.

 

 

opIsQuery

Operation dialog: IsQuery checkbox.

 

 

opMacros

A space-separated list of macros defined in the declaration for this operation.

 

 

opName

Operation dialog: Name.

 

 

opNotes

Operation dialog: Notes.

 

 

opPure

Operation dialog: Pure checkbox.

 

 

opReturnArray

Operation dialog: Return Array checkbox.

 

 

opReturnClassifierGUID

The unique GUID for the classifier of the current operation.

 

 

opReturnQualType

The operation return type qualified by the namespace path (if generating namespaces) and the classifier path (dot delimited). If the return type classifier has not been set, it is equivalent to the opReturnType macro.

 

 

opReturnType

Operation dialog: Return Type.

 

 

opScope

Operation dialog: Scope.

 

 

opStatic

Operation dialog: Static checkbox.

 

 

opStereotype

Operation dialog: Stereotype.

 

 

opSynchronized

Operation dialog: Synchronized checkbox.

 

 

Learn more