C# Class NMF.Models.Meta.Meta2ClassesTransformation

The transformation to transform an NMeta metamodel to code
Inheritance: ReflectiveTransformation
Show file Open project: NMFCode/NMF Class Usage Examples

Protected Methods

Method Description
CreateReference ( IType type, bool isReference, ITransformationContext context ) : CodeTypeReference

Creates a reference to the given NMeta type

GetResourceKey ( Model model ) : string

Gets the resource key for the given model element

IsValueType ( IType type ) : bool

Decides whether the given type is a value type

Private Methods

Method Description
CreateTypeReference ( ITypedElement typedElement, System attributePersistor, System getCollectionType, ITransformationContext context ) : CodeTypeReference
IsString ( IType type ) : bool

Method Details

CreateReference() protected static method

Creates a reference to the given NMeta type
protected static CreateReference ( IType type, bool isReference, ITransformationContext context ) : CodeTypeReference
type IType The NMeta type
isReference bool A value indicating whether to default to IModelElement or object
context ITransformationContext The transformation context
return System.CodeDom.CodeTypeReference

GetResourceKey() protected method

Gets the resource key for the given model element
protected GetResourceKey ( Model model ) : string
model Model The model for which to generate a resource key
return string

IsValueType() protected method

Decides whether the given type is a value type
protected IsValueType ( IType type ) : bool
type IType The NMeta type
return bool