Table of Contents

Class Meta2ClassesTransformation.Class2Children

Namespace
NMF.Models.Meta
Assembly
NMF.Models.MetaTransformation.dll

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

scope IClass

The scope in which the reference is refined

context ITransformationContext

The transformation context

Returns

CodeTypeDeclaration

The newly created code type declaration

GetImplementingReferences(IClass, ITransformationContext)

protected virtual List<IReference> GetImplementingReferences(IClass scope, ITransformationContext context)

Parameters

scope IClass
context ITransformationContext

Returns

List<IReference>

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

generatedType CodeTypeDeclaration

The generated code type declaration

elementType CodeTypeReference

The element type reference

standardValuesRef CodeExpression

A reference to the standard values field

implementingReferences List<IReference>

The attributes implementing the collection

context ITransformationContext

The 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

scope IClass

The scope in which the reference is refined

generatedType CodeTypeDeclaration

The generated type declaration

context ITransformationContext

The transformation context