IMetamodels.RemoveSuperClasses(IClass,IPackage,string,bool) Method
Namespace: NextDesign.Core
Description
Removes the superclasses of the specified class.
The superclasses to be removed are searched under the package specified in the scope.
Classes that are not included in the superclasses of the specified class are skipped among the enumeration of the specified superclass names.
When you delete the inheritance relationship of a class, the model of the inherited class is also deleted.
For information on how to specify the class name and the fuzzy match option, see the description of IMetamodels.
Arguments
Name | Type | Description |
---|---|---|
target | IClass | Target class |
scope | IPackage | Scope (Package that is the base of the search range) |
superClassNames | string | Superclass name You can specify multiple class names separated by commas. |
fuzzy | bool | Fuzzy match option The default value is true. If you specify false for fuzzy, the class name will be evaluated as a fully qualified name. If a class with the same name exists, you can specify false for fuzzy and specify the fully qualified name for superClassNames to identify the expected class. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Class not found | ExtensionTypeNotFoundException | If the specified class is not found |
Profile editing not possible | ExtensionEditProfileException | If the profile editing operation fails |