Interface INamedElement
Contract for named elements.
Inherited Members
Namespace: Kephas.Model
Assembly: Kephas.Model.dll
Syntax
public interface INamedElement : IAggregatedElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceAnnotations
Gets the annotations of this model element.
Declaration
IEnumerable<IAnnotation> Annotations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IAnnotation> | The model element annotations. |
DeclaringContainer
Gets the declaring container element.
Declaration
IModelElement DeclaringContainer { get; }
Property Value
Type | Description |
---|---|
IModelElement | The declaring container element. |
FullName
Gets the fully qualified name, starting from the root model space.
Declaration
string FullName { get; }
Property Value
Type | Description |
---|---|
System.String | The fully qualified name. |
Remarks
The fully qualified name is built up of qualified names separated by "/".
Examples
/: identifies the root model space.
/^AppLayer: identifies the AppLayer dimension.
/:Primitives:Kephas:Core:Main:Global/String: identifies the String classifier within the :Primitives:Kephas:Core:Main:Global projection.
/:MyModel:MyCompany:Contacts:Main:Domain/Contact/Name: identifies the Name member of the Contact classifier within the :MyModel:MyCompany:Contacts:Main:Domain projection.
/:MyModel:MyCompany:Contacts:Main:Domain/Contact/Name/@Required: identifies the Required attribute of the Name member of the Contact classifier within the :MyModel:MyCompany:Contacts:Main:Domain projection.
| Improve this Doc View SourceIsInherited
Gets a value indicating whether this element is inherited.
Declaration
bool IsInherited { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ModelSpace
Gets the model space.
Declaration
IModelSpace ModelSpace { get; }
Property Value
Type | Description |
---|---|
IModelSpace | The model space. |
QualifiedFullName
Gets the qualified name of the element.
Declaration
string QualifiedFullName { get; }
Property Value
Type | Description |
---|---|
System.String | The qualified name of the element. |
Remarks
The qualified name is unique within the container's members. Some elements have the qualified name the same as their name, but others will use a discriminator prefix to avoid name collisions. For example, annotations use the "@" discriminator, dimensions use "^", and projections use ":".