Table of Contents

Class DynamicModelElement

Namespace
NMF.Models.Dynamic
Assembly
NMF.Models.Dynamic.dll

Denotes a dynamic model element

public class DynamicModelElement : ModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
DynamicModelElement
Implements
Inherited Members
Extension Methods

Constructors

DynamicModelElement(IClass)

Creates a dynamic model element of the given class

public DynamicModelElement(IClass @class)

Parameters

class IClass

The class for which the model element is an instance

DynamicModelElement(IClass, IClass)

Creates a dynamic model element of the given class

public DynamicModelElement(IClass @class, IClass implemented)

Parameters

class IClass

The class for which the model element is an instance

implemented IClass

The class whose properties are directly implemented

Properties

Children

Gets a collection with the children of the current model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

IsIdentified

Gets a value indicating whether this item can be identified through its ToString value

public override bool IsIdentified { get; }

Property Value

bool

ReferencedElements

Gets a collection of model elements referenced from this element.

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

CreateUriWithFragment(string, bool, IModelElement)

Creates the uri with the given fragment starting from the current model element

protected override Uri CreateUriWithFragment(string fragment, bool absolute, IModelElement baseElement = null)

Parameters

fragment string

The fragment starting from this element

absolute bool

True, if an absolute Uri is desired, otherwise false

baseElement IModelElement

The element from which the uri shall be created or null

Returns

Uri

A uri (relative or absolute)

GetAttributeValue(string, int)

Gets the attribute value for the given attribute

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The attributes name in upper case

index int

The attributes index

Returns

object

The attribute value

GetClass()

Gets the class of the current model element

public override IClass GetClass()

Returns

IClass

The class of the current model element

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The features name in upper case

Returns

IList

A non-generic list of elements

GetCompositionName(object)

Gets the property name for the given container

protected override string GetCompositionName(object container)

Parameters

container object

The container object

Returns

string

The name of the respective container reference

GetExpressionForAttribute(string)

Gets a property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The requested attribute in upper case

Returns

INotifyExpression<object>

A property expression

GetExpressionForReference(string)

Gets a property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The name of the requested reference in upper case

Returns

INotifyExpression<IModelElement>

A property expression

GetModelElementForReference(string, int)

Gets the Model element for the given reference and index

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The reference name in upper case

index int

The index of the element within the reference

Returns

IModelElement

The model element at the given reference

GetRelativePathForNonIdentifiedChild(IModelElement)

Gets the relative Uri for the given child element that is not identified

protected override string GetRelativePathForNonIdentifiedChild(IModelElement child)

Parameters

child IModelElement

The child element

Returns

string

A relative Uri to resolve the child element

SetFeature(string, object)

Sets the given feature to the given value

protected override void SetFeature(string feature, object value)

Parameters

feature string

The name of the feature that should be set

value object

The value that should be set

ToIdentifierString()

Gets the identifier for this model element

public override string ToIdentifierString()

Returns

string