Show / Hide Table of Contents

Class AnnotationConstructorBase<TAnnotation, TAttribute>

Base class for runtime annotation information factories.

Inheritance
System.Object
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>
AnnotationConstructorBase<TAnnotation, TAttribute>
KeyAnnotationConstructor
ValidationAnnotationConstructor
AspectAnnotationConstructor
AttributeAnnotationConstructor
MixinAnnotationConstructor
Implements
IRuntimeModelElementConstructor<TAnnotation, IAnnotation, TAttribute>
IRuntimeModelElementConstructor
Inherited Members
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.ElementNameDiscriminator
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.TryCreateModelElement(IModelConstructionContext, Object)
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.TryComputeName(IModelConstructionContext, Object)
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.CanCreateModelElement(IModelConstructionContext, TAttribute)
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.TryCreateModelElementCore(IModelConstructionContext, TAttribute)
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.ConstructModelElementContent(IModelConstructionContext, TAttribute, TAnnotation)
NamedElementConstructorBase<TAnnotation, IAnnotation, TAttribute>.TryComputeNameCore(Object)
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 Source

AnnotationDiscriminator

The annotation discriminator.

Declaration
public const string AnnotationDiscriminator = "Attribute"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

ElementNameDiscriminator

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 Source

ConstructModelElementContent(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 null if the name could not be computed.

Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<TAnnotation, Kephas.Model.IAnnotation, TAttribute>.TryComputeNameCore(System.Object)

Implements

IRuntimeModelElementConstructor<TModel, TModelContract, TRuntime>
IRuntimeModelElementConstructor

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX