Class ModelElementConstructorBase<TModel, TModelContract, TRuntime>
Base runtime provider for model element information.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Runtime.Construction
Assembly: Kephas.Model.dll
Syntax
public abstract class ModelElementConstructorBase<TModel, TModelContract, TRuntime> : NamedElementConstructorBase<TModel, TModelContract, TRuntime>, IRuntimeModelElementConstructor<TModel, TModelContract, TRuntime>, IRuntimeModelElementConstructor where TModel : ModelElementBase<TModelContract> where TModelContract : class, IModelElement where TRuntime : class, IElementInfo, IRuntimeElementInfo
Type Parameters
Name | Description |
---|---|
TModel | The type of the element information. |
TModelContract | Type of the model contract. |
TRuntime | The type of the runtime information. |
Methods
| Improve this Doc View SourceComputeMemberAnnotations(IModelConstructionContext, TRuntime)
Computes the member annotations from the runtime element.
Declaration
protected virtual IEnumerable<INamedElement> ComputeMemberAnnotations(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The model construction context. |
TRuntime | runtimeElement | The runtime member information. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INamedElement> | An enumeration of INamedElement. |
ComputeMemberMethods(IModelConstructionContext, TRuntime)
Computes the member properties from the runtime element.
Declaration
protected virtual IEnumerable<INamedElement> ComputeMemberMethods(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The model construction context. |
TRuntime | runtimeElement | The runtime member information. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INamedElement> | An enumeration of INamedElement. |
ComputeMemberProperties(IModelConstructionContext, TRuntime)
Computes the member properties from the runtime element.
Declaration
protected virtual IEnumerable<INamedElement> ComputeMemberProperties(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The model construction context. |
TRuntime | runtimeElement | The runtime member information. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INamedElement> | An enumeration of INamedElement. |
ComputeMembers(IModelConstructionContext, TRuntime)
Computes the members from the runtime element.
Declaration
protected virtual IEnumerable<INamedElement> ComputeMembers(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The model construction context. |
TRuntime | runtimeElement | The runtime member information. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INamedElement> | An enumeration of INamedElement. |
ConstructModelElementContent(IModelConstructionContext, TRuntime, TModel)
Constructs the model element content.
Declaration
protected override void ConstructModelElementContent(IModelConstructionContext constructionContext, TRuntime runtimeElement, TModel element)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
TRuntime | runtimeElement | The runtime element. |
TModel | element | The element being constructed. |