gmplMigclassStatement
- Mark Juras
Owned by Mark Juras
Migclass Statement Summary
Migclass is a nonterminal, refactoring statement that occurs within the scope of a HostId oriented Refactor statement, but also within command scripts and language files. This statement introduces a new class that contains related refactoring information used for complex migration operations, especially as related to designer code. The attributes of the Migclass statement are as follows:Attribute | Description |
Id | This attribute is the identifier of the migration class. It must be unique within the scope of its parent, which is the hostid if the statement is within a Refactor, else it is the root. It is not case sensitive. |
Parent | This attribute specifies the "parent" of the migration class. In this content "parent" refers to the external class whose components the migration class is intended to enhance or describe. This is usually an external library being migrated or a VB6 language class to be authored. |
MigName | This attribute supplies the name to be used when for the migration class in the target translations. |
needsinit | This is a On/Off flag attribute. The On setting sets the Needsinit status flag On which means that the class needs to be initialized by the author when declared. |
NetName | This attribute supplies the name to be used when for the migration class in the target translations. It differs from MigName in that it also sets the External status flag On. This means that the class is external to the library in the target implementation to which it was assigned in the source implementation. Therefore, when authoring the identifier of the class do not precede it with its source parent membership information. |
Creatable | This is an On/Off flag attribute. The Off setting sets the Noncreatable status flag On. It means that the migration class objects cannot be created. When declaring objects of this class simply NULL them as opposed to using new to create an instance. |
The declarations within the Migclass statement are as follows:
Substatement | Description |
Property | Declares a property within the migration class |
Field | Declares a field within the migration class |
Method | Declares a method within the migration class |
Enumeration | Declares an enumeration within the migration class |
The script errors associated with the Migclass statement are as follows:
Error | Description |
1089 | Migclass command missing required id attribute. |
1090 | Unable to store MIGCLASS LIB_COMP vector: %1d |
1091 | Unable to find parent CLASS: %1d |
1092 | Encountered following when expecting class component: %1d |
Table of Contents