Interface IRuntimeModelElementConstructor
Contract for element factories.
Namespace: Kephas.Model.Runtime.Construction
Assembly: Kephas.Model.dll
Syntax
public interface IRuntimeModelElementConstructorMethods
| Improve this Doc View SourceTryComputeName(IModelConstructionContext, Object)
Tries to compute the name for the provided runtime element.
Declaration
string TryComputeName(IModelConstructionContext constructionContext, object runtimeElement)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.Object | runtimeElement | The runtime element. | 
Returns
| Type | Description | 
|---|---|
| System.String | A string containing the name, or  | 
TryCreateModelElement(IModelConstructionContext, Object)
Tries to create an element information structure based on the provided runtime element information.
Declaration
INamedElement TryCreateModelElement(IModelConstructionContext constructionContext, object runtimeElement)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.Object | runtimeElement | The runtime element. | 
Returns
| Type | Description | 
|---|---|
| INamedElement | A new element information based on the provided runtime element information, or  |