Class Meta2ClassesTransformation.Class2Children
The transformation rule that generates the collection class for the children reference
Inheritance
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.MetaTransformation.dll
Syntax
public class Meta2ClassesTransformation.Class2Children : TransformationRule<IClass, CodeTypeDeclaration>
Methods
| Edit this page View SourceCreateOutput(IClass, ITransformationContext)
Creates the uninitialized output type declaration
Declaration
public override CodeTypeDeclaration CreateOutput(IClass scope, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IClass | scope | The scope in which the reference is refined |
ITransformationContext | context | The transformation context |
Returns
Type | Description |
---|---|
CodeTypeDeclaration | The newly created code type declaration |
Overrides
GetImplementingReferences(IClass, ITransformationContext)
Declaration
protected virtual List<IReference> GetImplementingReferences(IClass scope, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IClass | scope | |
ITransformationContext | context |
Returns
Type | Description |
---|---|
List<IReference> |
ImplementCollection(CodeTypeDeclaration, CodeTypeReference, CodeExpression, List<IReference>, ITransformationContext)
Implements the ICollection interface
Declaration
protected virtual void ImplementCollection(CodeTypeDeclaration generatedType, CodeTypeReference elementType, CodeExpression standardValuesRef, List<IReference> implementingReferences, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeDeclaration | generatedType | The generated code type declaration |
CodeTypeReference | elementType | The element type reference |
CodeExpression | standardValuesRef | A reference to the standard values field |
List<IReference> | implementingReferences | The attributes implementing the collection |
ITransformationContext | context | The context in which the collection is implemented |
RegisterDependencies()
Registers all the dependencies (both calling and non-calling) and additional configuration
Declaration
public override void RegisterDependencies()
Overrides
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
Declaration
public override void Transform(IClass scope, CodeTypeDeclaration generatedType, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IClass | scope | The scope in which the reference is refined |
CodeTypeDeclaration | generatedType | The generated type declaration |
ITransformationContext | context | The transformation context |