Click or drag to resize

InheritanceExtensions Class

Extension methods to navigate the inheritance relations
Inheritance Hierarchy
SystemObject
  Aml.Engine.CAEX.ExtensionsInheritanceExtensions

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static class InheritanceExtensions

The InheritanceExtensions type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberDerivedClasses Gets the dictionary of derived classes. The dictionary has to be filled manually AddClassDerivations(CAEXDocument, String, String).
Top
Methods
 NameDescription
Public Extension MethodChangeNameAndReferencesT Changes the name of the CAEX class and all the references to the class in the whole CAEX document.
Public Extension MethodClassIsDerivedFromT(IClassWithBaseClassReferenceT, IClassWithBaseClassReferenceT) Determines, if the specified class is directly or indirectly (across multiple generations) a descendant of the specified base class or identical to it. This method can be used, if the classes are distributed over different CAEX documents, the documents should be referenced by external references and alias references.
Public Extension MethodClassIsDerivedFromT(IClassWithBaseClassReferenceT, String) Determines, if the specified class is directly or indirectly (across multiple generations) a descendant of the class or identical to it, which is uniquely identified with the specified baseClass path. The base class path or the referenced class path may contain alias identifiers. If alias identifiers are present, the method tries to load the external referenced document.
Public Extension MethodClassIsDerivedFromT(CAEXDocument, String, String) Determines, if the class, specified with the given class path is directly or indirectly (across multiple generations) a descendant of the class or identical to it, which is uniquely identified with the specified baseClass path. The base class path or the referenced class path may contain alias identifiers. If alias identifiers are present, the method tries to load the externally referenced document.
Public Extension MethodCopyTreeAndChangeReferencesT Creates a copy of the source class and all its child classes and assigns the provided name to the copy. Including references to objects in the original class tree are redirected to objects in the copied tree. The copy is inserted into the provided parent object.
Public Extension MethodCreateClassInstanceT Creates a class instance of the CAEX class and assigns the name to the instance.
Public Extension MethodIsDerivedFromAttributeType Determines whether the specified attribute defines an inheritance relation from the attribute, uniquely identifiable by the given attribute type path. The attribute type path may contain an alias.
Public Extension MethodIsDerivedFromInterfaceClass Determines whether the specified interface class has an inheritance relation from the interface class, uniquely identifiable by the given interface class path. The interface class path may contain an alias.
Public Extension MethodIsDerivedFromRoleClass Determines whether the specified role reference defines an inheritance relation from the role, uniquely identifiable by the given role class path. The role class path may contain an alias.
Top
See Also