Show / Hide Table of Contents

Class DynamicModelElement

Denotes a dynamic model element

Inheritance
object
ModelElement
DynamicModelElement
Implements
IModelElement
INotifyPropertyChanged
INotifyPropertyChanging
Inherited Members
ModelElement.Model
ModelElement.Freeze()
ModelElement.Lock()
ModelElement.IsFrozen
ModelElement.IsLocked
ModelElement.Unlock()
ModelElement.TryUnlock()
ModelElement.GetContainerReference(IModelElement, out int)
ModelElement.PropagateNewModel(Model, Model, IModelElement)
ModelElement.OnChildCreated(IModelElement)
ModelElement.OnParentChanging(IModelElement, IModelElement)
ModelElement.OnParentChanged(IModelElement, IModelElement)
ModelElement.Parent
ModelElement.RelativeUri
ModelElement.AbsoluteUri
ModelElement.CreateUriFromGlobalIdentifier(string, bool)
ModelElement.PropagateNewId(ValueChangedEventArgs)
ModelElement.EnforceModels
ModelElement.PreferIdentifiers
ModelElement.ToString()
ModelElement.KeyChanged
ModelElement.OnKeyChanged(EventArgs)
ModelElement.Resolve(Uri)
ModelElement.Resolve(string)
ModelElement.GetRelativePathForChild(IModelElement)
ModelElement.GetModelElementForPathSegment(string)
ModelElement.CallOperation(IOperation, object[])
ModelElement.Extensions
ModelElement.GetExtension<T>()
ModelElement.ReferencedElements
ModelElement.OnPropertyChanged(string, ValueChangedEventArgs, Lazy<ITypedElement>)
ModelElement.OnPropertyChanging(string, ValueChangedEventArgs, Lazy<ITypedElement>)
ModelElement.Delete()
ModelElement.OnDeleting(UriChangedEventArgs)
ModelElement.OnDeleted(UriChangedEventArgs)
ModelElement.PropertyChanged
ModelElement.PropertyChanging
ModelElement.Deleted
ModelElement.Deleting
ModelElement.UriChanged
ModelElement.ClassInstance
ModelElement.GetReferencedElement(IReference, int)
ModelElement.SetReferencedElement(IReference, IModelElement)
ModelElement.GetReferencedElements(IReference)
ModelElement.GetAttributeValue(IAttribute, int)
ModelElement.SetAttributeValue(IAttribute, object)
ModelElement.GetAttributeValues(IAttribute)
ModelElement.OnCollectionChanged(string, NotifyCollectionChangedEventArgs, Lazy<ITypedElement>)
ModelElement.OnCollectionChanging(string, NotifyCollectionChangedEventArgs, Lazy<ITypedElement>)
ModelElement.OnBubbledChange(BubbledChangeEventArgs)
ModelElement.BubbledChange
ModelElement.ParentChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: NMF.Models.Dynamic
Assembly: NMF.Models.Dynamic.dll
Syntax
public class DynamicModelElement : ModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

| Edit this page View Source

DynamicModelElement(IClass)

Creates a dynamic model element of the given class

Declaration
public DynamicModelElement(IClass @class)
Parameters
Type Name Description
IClass class

The class for which the model element is an instance

| Edit this page View Source

DynamicModelElement(IClass, IClass)

Creates a dynamic model element of the given class

Declaration
public DynamicModelElement(IClass @class, IClass implemented)
Parameters
Type Name Description
IClass class

The class for which the model element is an instance

IClass implemented

The class whose properties are directly implemented

Properties

| Edit this page View Source

Children

Gets a collection with the children of the current model element

Declaration
public override IEnumerableExpression<IModelElement> Children { get; }
Property Value
Type Description
IEnumerableExpression<IModelElement>
Overrides
ModelElement.Children
| Edit this page View Source

IsIdentified

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

Declaration
public override bool IsIdentified { get; }
Property Value
Type Description
bool
Overrides
ModelElement.IsIdentified

Methods

| Edit this page View Source

CreateUriWithFragment(string, bool, IModelElement)

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

Declaration
protected override Uri CreateUriWithFragment(string fragment, bool absolute, IModelElement baseElement = null)
Parameters
Type Name Description
string fragment

The fragment starting from this element

bool absolute

True, if an absolute Uri is desired, otherwise false

IModelElement baseElement

The element from which the uri shall be created or null

Returns
Type Description
Uri

A uri (relative or absolute)

Overrides
ModelElement.CreateUriWithFragment(string, bool, IModelElement)
| Edit this page View Source

GetAttributeValue(string, int)

Gets the attribute value for the given attribute

Declaration
protected override object GetAttributeValue(string attribute, int index)
Parameters
Type Name Description
string attribute

The attributes name in upper case

int index

The attributes index

Returns
Type Description
object

The attribute value

Overrides
ModelElement.GetAttributeValue(string, int)
| Edit this page View Source

GetClass()

Gets the class of the current model element

Declaration
public override IClass GetClass()
Returns
Type Description
IClass

The class of the current model element

Overrides
ModelElement.GetClass()
| Edit this page View Source

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

Declaration
protected override IList GetCollectionForFeature(string feature)
Parameters
Type Name Description
string feature

The features name in upper case

Returns
Type Description
IList

A non-generic list of elements

Overrides
ModelElement.GetCollectionForFeature(string)
| Edit this page View Source

GetCompositionName(object)

Gets the property name for the given container

Declaration
protected override string GetCompositionName(object container)
Parameters
Type Name Description
object container

The container object

Returns
Type Description
string

The name of the respective container reference

Overrides
ModelElement.GetCompositionName(object)
| Edit this page View Source

GetExpressionForAttribute(string)

Gets a property expression for the given attribute

Declaration
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
Type Name Description
string attribute

The requested attribute in upper case

Returns
Type Description
INotifyExpression<object>

A property expression

Overrides
ModelElement.GetExpressionForAttribute(string)
| Edit this page View Source

GetExpressionForReference(string)

Gets a property expression for the given reference

Declaration
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
Type Name Description
string reference

The name of the requested reference in upper case

Returns
Type Description
INotifyExpression<IModelElement>

A property expression

Overrides
ModelElement.GetExpressionForReference(string)
| Edit this page View Source

GetModelElementForReference(string, int)

Gets the Model element for the given reference and index

Declaration
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Type Name Description
string reference

The reference name in upper case

int index

The index of the element within the reference

Returns
Type Description
IModelElement

The model element at the given reference

Overrides
ModelElement.GetModelElementForReference(string, int)
| Edit this page View Source

GetRelativePathForNonIdentifiedChild(IModelElement)

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

Declaration
protected override string GetRelativePathForNonIdentifiedChild(IModelElement child)
Parameters
Type Name Description
IModelElement child

The child element

Returns
Type Description
string

A relative Uri to resolve the child element

Overrides
ModelElement.GetRelativePathForNonIdentifiedChild(IModelElement)
| Edit this page View Source

SetFeature(string, object)

Sets the given feature to the given value

Declaration
protected override void SetFeature(string feature, object value)
Parameters
Type Name Description
string feature

The name of the feature that should be set

object value

The value that should be set

Overrides
ModelElement.SetFeature(string, object)
| Edit this page View Source

ToIdentifierString()

Gets the identifier for this model element

Declaration
public override string ToIdentifierString()
Returns
Type Description
string
Overrides
ModelElement.ToIdentifierString()

Implements

IModelElement
INotifyPropertyChanged
INotifyPropertyChanging

Extension Methods

ModelExtensions.AncestorTree(IModelElement)
ModelExtensions.Ancestors(IModelElement)
ModelExtensions.Descendants(IModelElement)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX