Class Meta2ClassesTransformation.RefinedReferenceCollectionClassGenerator
The transformation rule that generates the collection class for a refined reference
Inheritance
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.MetaTransformation.dll
Syntax
public class Meta2ClassesTransformation.RefinedReferenceCollectionClassGenerator : TransformationRule<IClass, IReference, CodeTypeDeclaration>
Methods
| Edit this page View SourceCreateOutput(IClass, IReference, ITransformationContext)
Creates the uninitialized output type declaration
Declaration
public override CodeTypeDeclaration CreateOutput(IClass scope, IReference reference, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IClass | scope | The scope in which the reference is refined |
IReference | reference | The refined reference |
ITransformationContext | context | The transformation context |
Returns
Type | Description |
---|---|
CodeTypeDeclaration | The newly created code type declaration |
Overrides
ImplementCollection(CodeTypeDeclaration, CodeTypeReference, CodeExpression, IReference, List<IReference>, List<IModelElement>, ITransformationContext)
Implements the ICollection interface
Declaration
protected virtual void ImplementCollection(CodeTypeDeclaration generatedType, CodeTypeReference elementType, CodeExpression standardValuesRef, IReference original, List<IReference> implementingReferences, List<IModelElement> constraintReferences, 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 |
IReference | original | The original reference |
List<IReference> | implementingReferences | The references implementing the collection |
List<IModelElement> | constraintReferences | The constraints that apply to the reference |
ITransformationContext | context | The context in which the collection is implemented |
ImplementList(CodeTypeDeclaration, CodeTypeReference, CodeExpression, IReference, List<IReference>, List<IModelElement>, ITransformationContext)
Implements the IList interface
Declaration
protected virtual void ImplementList(CodeTypeDeclaration generatedType, CodeTypeReference elementType, CodeExpression standardValuesRef, IReference original, List<IReference> implementingReferences, List<IModelElement> constraintReferences, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeDeclaration | generatedType | The generated code type declaration |
CodeTypeReference | elementType | The element tyoe reference |
CodeExpression | standardValuesRef | A reference to the standard values field |
IReference | original | The original reference |
List<IReference> | implementingReferences | The attributes implementing the collection |
List<IModelElement> | constraintReferences | The constraints that apply to the reference |
ITransformationContext | context | The context in which the collection is implemented |
ImplementNotifiable(CodeTypeDeclaration, CodeTypeReference)
Implement the IEnumerableExpression interface
Declaration
protected virtual void ImplementNotifiable(CodeTypeDeclaration generatedType, CodeTypeReference elementType)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeDeclaration | generatedType | The generated code type declaration |
CodeTypeReference | elementType | The element type reference |
ImplementNotifications(CodeTypeDeclaration, List<IReference>, CodeConstructor, CodeArgumentReferenceExpression, ITransformationContext)
Implement notifications for the given refined reference class
Declaration
protected virtual void ImplementNotifications(CodeTypeDeclaration generatedType, List<IReference> implementingReferences, CodeConstructor constructor, CodeArgumentReferenceExpression constrParentRef, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
CodeTypeDeclaration | generatedType | The generated type |
List<IReference> | implementingReferences | The implementing references |
CodeConstructor | constructor | The constructor of the generated type |
CodeArgumentReferenceExpression | constrParentRef | The reference to the parent element |
ITransformationContext | context | The context in which the request was made |
Transform(IClass, IReference, CodeTypeDeclaration, ITransformationContext)
Initializes the created type declaration
Declaration
public override void Transform(IClass scope, IReference reference, CodeTypeDeclaration generatedType, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
IClass | scope | The scope in which the reference is refined |
IReference | reference | The refined reference |
CodeTypeDeclaration | generatedType | The generated type declaration |
ITransformationContext | context | The transformation context |