Class RuntimeModelElementConfiguratorBase<TElement, TRuntimeElement, TConfigurator>
Base configurator for model elements.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Runtime.Configuration
Assembly: Kephas.Model.dll
Syntax
public abstract class RuntimeModelElementConfiguratorBase<TElement, TRuntimeElement, TConfigurator> : IRuntimeModelElementConfigurator<TElement, TRuntimeElement>, IRuntimeModelElementConfigurator, IElementConfigurator where TElement : INamedElement where TConfigurator : IRuntimeModelElementConfigurator<TElement, TRuntimeElement>
Type Parameters
Name | Description |
---|---|
TElement | The type of the element. |
TRuntimeElement | Type of the runtime element. |
TConfigurator | The type of the configurator. |
Methods
| Improve this Doc View SourceAddAttribute<TAttribute>()
Adds an attribute to the configured element.
Declaration
public virtual TConfigurator AddAttribute<TAttribute>()
where TAttribute : Attribute
Returns
Type | Description |
---|---|
TConfigurator | A TConfigurator. |
Type Parameters
Name | Description |
---|---|
TAttribute | Type of the attribute. |
AddConfiguration(Action<IModelConstructionContext, TElement>)
Adds an element configuration.
Declaration
protected void AddConfiguration(Action<IModelConstructionContext, TElement> config)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IModelConstructionContext, TElement> | config | The configuration. |
AddMember(INamedElement)
Adds a member to the configured element.
Declaration
public virtual TConfigurator AddMember(INamedElement member)
Parameters
Type | Name | Description |
---|---|---|
INamedElement | member | The member to be added. |
Returns
Type | Description |
---|---|
TConfigurator | This configurator. |
AddMember(Object)
Adds a member out of the runtime element to the configured model element.
Declaration
public virtual TConfigurator AddMember(object runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
System.Object | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
TConfigurator | This configurator. |
Configure(IModelConstructionContext, TElement)
Configures the model element provided.
Declaration
public virtual void Configure(IModelConstructionContext constructionContext, TElement element)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The construction context. |
TElement | element | The model element to be configured. |
Explicit Interface Implementations
| Improve this Doc View SourceIElementConfigurator.Configure(IModelConstructionContext, INamedElement)
Configures the model element provided.
Declaration
void IElementConfigurator.Configure(IModelConstructionContext constructionContext, INamedElement element)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | The construction context. |
INamedElement | element | The model element to be configured. |
IRuntimeModelElementConfigurator.AddMember(INamedElement)
Adds a member to the configured element.
Declaration
IRuntimeModelElementConfigurator IRuntimeModelElementConfigurator.AddMember(INamedElement member)
Parameters
Type | Name | Description |
---|---|---|
INamedElement | member | The member to be added. |
Returns
Type | Description |
---|---|
IRuntimeModelElementConfigurator | An IRuntimeModelElementConfigurator. |
IRuntimeModelElementConfigurator.AddMember(Object)
Adds a member out of the runtime element to the configured model element.
Declaration
IRuntimeModelElementConfigurator IRuntimeModelElementConfigurator.AddMember(object runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
System.Object | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
IRuntimeModelElementConfigurator | An IRuntimeModelElementConfigurator. |