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
scope
IClassThe scope in which the reference is refined
context
ITransformationContextThe transformation context
Returns
- CodeTypeDeclaration
The newly created code type declaration
GetImplementingReferences(IClass, ITransformationContext)
protected virtual List<IReference> GetImplementingReferences(IClass scope, ITransformationContext context)
Parameters
scope
IClasscontext
ITransformationContext
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
generatedType
CodeTypeDeclarationThe generated code type declaration
elementType
CodeTypeReferenceThe element type reference
standardValuesRef
CodeExpressionA reference to the standard values field
implementingReferences
List<IReference>The attributes implementing the collection
context
ITransformationContextThe 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
IClassThe scope in which the reference is refined
generatedType
CodeTypeDeclarationThe generated type declaration
context
ITransformationContextThe transformation context