Class ModelDimensionConstructor
Runtime factory for model dimension information.
Inheritance
System.Object
ModelDimensionConstructor
Implements
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
Assembly: Kephas.Model.dll
Syntax
[ProcessingPriority(Priority.Highest)]
public class ModelDimensionConstructor : ModelElementConstructorBase<ModelDimension, IModelDimension, IRuntimeTypeInfo>, IRuntimeModelElementConstructor<ModelDimension, IModelDimension, IRuntimeTypeInfo>, IRuntimeModelElementConstructor
Fields
| Improve this Doc View SourceDimensionNameDiscriminator
The dimension name discriminator.
Declaration
public const string DimensionNameDiscriminator = "Dimension"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceElementNameDiscriminator
Gets the element name discriminator.
Declaration
protected override string ElementNameDiscriminator { get; }
Property Value
Type | Description |
---|---|
System.String | The element name discriminator. |
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Model.Elements.ModelDimension, Kephas.Model.IModelDimension, Kephas.Runtime.IRuntimeTypeInfo>.ElementNameDiscriminator
Remarks
This discriminator can be used as a suffix in the name to identify the element type.
Methods
| Improve this Doc View SourceCanCreateModelElement(IModelConstructionContext, IRuntimeTypeInfo)
Determines whether a model element can be created for the provided runtime element.
Declaration
protected override bool CanCreateModelElement(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
IRuntimeTypeInfo | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Model.Elements.ModelDimension, Kephas.Model.IModelDimension, Kephas.Runtime.IRuntimeTypeInfo>.CanCreateModelElement(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)
|
Improve this Doc
View Source
TryCreateModelElementCore(IModelConstructionContext, IRuntimeTypeInfo)
Tries to get the model dimension information.
Declaration
protected override ModelDimension TryCreateModelElementCore(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
IRuntimeTypeInfo | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
ModelDimension | A new element information based on the provided runtime element information, or |
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Model.Elements.ModelDimension, Kephas.Model.IModelDimension, Kephas.Runtime.IRuntimeTypeInfo>.TryCreateModelElementCore(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)