Class Meta2ClassesTransformation.Class2Children
The transformation rule that generates the collection class for the children reference
public class Meta2ClassesTransformation.Class2Children : TransformationRule<IClass, CodeTypeDeclaration>
- Inheritance
-
Meta2ClassesTransformation.Class2Children
- Derived
- Inherited Members
Methods
CreateOutput(IClass, ITransformationContext)
Creates the uninitialized output type declaration
public override CodeTypeDeclaration CreateOutput(IClass scope, ITransformationContext context)
Parameters
scopeIClassThe scope in which the reference is refined
contextITransformationContextThe transformation context
Returns
- CodeTypeDeclaration
The newly created code type declaration
GetImplementingReferences(IClass, ITransformationContext)
protected virtual List<IReference> GetImplementingReferences(IClass scope, ITransformationContext context)
Parameters
scopeIClasscontextITransformationContext
Returns
ImplementCollection(CodeTypeDeclaration, CodeTypeReference, CodeExpression, List<IReference>, ITransformationContext)
Implements the ICollection interface
protected virtual void ImplementCollection(CodeTypeDeclaration generatedType, CodeTypeReference elementType, CodeExpression standardValuesRef, List<IReference> implementingReferences, ITransformationContext context)
Parameters
generatedTypeCodeTypeDeclarationThe generated code type declaration
elementTypeCodeTypeReferenceThe element type reference
standardValuesRefCodeExpressionA reference to the standard values field
implementingReferencesList<IReference>The attributes implementing the collection
contextITransformationContextThe context in which the collection is implemented
RegisterDependencies()
Registers all the dependencies (both calling and non-calling) and additional configuration
public override void RegisterDependencies()
Remarks
This method is called during initialization of the entire transformation and is independent of any transformation contexts. However, this method may rely on the Transformation-property.
Transform(IClass, CodeTypeDeclaration, ITransformationContext)
Initializes the created type declaration
public override void Transform(IClass scope, CodeTypeDeclaration generatedType, ITransformationContext context)
Parameters
scopeIClassThe scope in which the reference is refined
generatedTypeCodeTypeDeclarationThe generated type declaration
contextITransformationContextThe transformation context