Class NamedElementBuilderBase<TModel, TModelContract, TRuntime, TBuilder>
Base abstract builder for runtime named element information.
Inheritance
System.Object
NamedElementBuilderBase<TModel, TModelContract, TRuntime, TBuilder>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Model.Runtime.Construction.Builders
Assembly: Kephas.Model.dll
Syntax
public abstract class NamedElementBuilderBase<TModel, TModelContract, TRuntime, TBuilder>
where TModel : NamedElementBase<TModelContract> where TModelContract : INamedElement where TRuntime : class, IElementInfo where TBuilder : NamedElementBuilderBase<TModel, TModelContract, TRuntime, TBuilder>
Type Parameters
Name | Description |
---|---|
TModel | Type of the model being built. |
TModelContract | Type of the model contract. |
TRuntime | Type of the runtime element. |
TBuilder | Type of the builder. |
Constructors
| Improve this Doc View SourceNamedElementBuilderBase(IModelConstructionContext, TRuntime)
Initializes a new instance of the NamedElementBuilderBase<TModel, TModelContract, TRuntime, TBuilder> class.
Declaration
protected NamedElementBuilderBase(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
TRuntime | runtimeElement | The runtime element. |
Properties
| Improve this Doc View SourceConstructionContext
Gets the construction context.
Declaration
public IModelConstructionContext ConstructionContext { get; }
Property Value
Type | Description |
---|---|
IModelConstructionContext | The construction context. |
Element
Gets the element information to be built.
Declaration
public TModel Element { get; }
Property Value
Type | Description |
---|---|
TModel | The element information. |
Methods
| Improve this Doc View SourceCreateElementConstructor(IModelConstructionContext, TRuntime)
Creates the element information out of the provided runtime element.
Declaration
protected abstract IRuntimeModelElementConstructor CreateElementConstructor(IModelConstructionContext constructionContext, TRuntime runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
TRuntime | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
IRuntimeModelElementConstructor | A new instance of |