Class Field Substitution Macros

This table provides a list of methods for accessing each available Class property in the Code Generation and Transformation templates.

Field substitution macros are named according to Camel casing. Macros that represent checkboxes return a value of 'T' if the box is selected. Otherwise the value is empty.

Class Macros

Macro Name

Description

See also

elemType

The element type: Interface or Class.

classAbstract

Class dialog: 'Abstract' checkbox.

classAlias

Class dialog: Alias.

classArguments

Class Detail dialog: C++ Templates: Arguments.

classAuthor

Class dialog: Author.

classBaseName

'Type Hierarchy' dialog: Class Name (for use where no connector exists between child and base Classes).

classBaseScope

The scope of the inheritance as reverse engineered. (For use where no connector exists between child and base Classes.)

classBaseVirtual

The virtual property of the inheritance as reverse engineered. (For use where no connector exists between child and base Classes.)

classComplexity

Class dialog: Complexity.

classCreated

The date and time the Class was created.

classGUID

The unique GUID for the current Class.

classHasConstructor

Looks at the list of methods in the current object and, depending on the conventions of the current language, returns T if one is a default constructor. Typically used with the genOptGenConstructor macro.

Code Generation Option Field Substitution Macros

classHasCopyConstructor

Looks at the list of methods in the current object and, depending on the conventions of the current language, returns T if one is a copy constructor. Typically used with the genOptGenCopyConstructor macro.

classHasDestructor

Looks at the list of methods in the current object and, depending on the conventions of the current language, returns T if one is a destructor. Typically used with the genOptGenDestructor macro.

classHasParent

True, if the Class in scope has one or more base Classes.

classImports

Code Gen dialog: Imports.

classIsActive

Class Advanced dialog: 'Is Active' checkbox.

classIsAssociationClass

True, if the Association is an AssociationClass connector.

classIsInstantiated

True, if the Class is an instantiated template Class.

classIsLeaf

Class Advanced dialog: 'Is Leaf' checkbox.

classIsRoot

Class Advanced dialog: 'Is Root' checkbox.

classIsSpecification

Class Advanced dialog: 'Is Specification' checkbox.

classKeywords

Class dialog: Keywords.

classLanguage

Class dialog: Language.

classMacros

A space separated list of macros defined for the Class.

classModified

The date and time the Class was last modified.

classMultiplicity

Class Advanced dialog: Multiplicity.

className

Class dialog: Name.

classNotes

Class dialog: Note.

classParamDefault

Class Detail dialog.

classParamName

Class Detail dialog.

classParamType

Class Detail dialog.

classPersistence

Class dialog: Persistence.

classPhase

Class dialog: Phase.

classQualName

The Class name prefixed by its outer Classes. Class names are separated by double colons (::).

classScope

Class dialog: Scope.

classStereotype

Class dialog: Stereotype.

classStatus

Class dialog: Status.

classVersion

Class dialog: Version.

Learn more