Class AnnotationConstructorBase<TAnnotation, TAttribute>
Base class for runtime annotation information factories.
Inheritance
System.Object
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>
AnnotationConstructorBase<TAnnotation, TAttribute>
Implements
IRuntimeModelElementConstructor<TAnnotation, IAnnotation, TAttribute>
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
public abstract class AnnotationConstructorBase<TAnnotation, TAttribute> : NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>, IRuntimeModelElementConstructor<TAnnotation, IAnnotation, TAttribute>, IRuntimeModelElementConstructor where TAnnotation : Annotation where TAttribute : Attribute
Type Parameters
Name | Description |
---|---|
TAnnotation | Type of the annotation information. |
TAttribute | Type of the attribute. |
Fields
| Improve this Doc View SourceAnnotationDiscriminator
The annotation discriminator.
Declaration
public const string AnnotationDiscriminator = "Attribute"
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<TAnnotation, Kephas.Model.IAnnotation, TAttribute>.ElementNameDiscriminator
Remarks
This discriminator can be used as a suffix in the name to identify the element type.
Methods
| Improve this Doc View SourceConstructModelElementContent(IModelConstructionContext, TAttribute, TAnnotation)
Constructs the model element content.
Declaration
protected override void ConstructModelElementContent(IModelConstructionContext constructionContext, TAttribute runtimeElement, TAnnotation element)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
TAttribute | runtimeElement | The runtime element. |
TAnnotation | element | The element being constructed. |
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<TAnnotation, Kephas.Model.IAnnotation, TAttribute>.ConstructModelElementContent(Kephas.Model.Construction.IModelConstructionContext, TAttribute, TAnnotation)
|
Improve this Doc
View Source
TryComputeNameCore(Object)
Computes the model element name based on the runtime element.
Declaration
protected override string TryComputeNameCore(object runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
System.Object | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
System.String | The element name, or |
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<TAnnotation, Kephas.Model.IAnnotation, TAttribute>.TryComputeNameCore(System.Object)