Class DynamicModelElement
Denotes a dynamic model element
Inherited Members
Namespace: NMF.Models.Dynamic
Assembly: NMF.Models.Dynamic.dll
Syntax
public class DynamicModelElement : ModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
| Edit this page View SourceDynamicModelElement(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 |
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 SourceChildren
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
| Edit this page View SourceIsIdentified
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
Methods
| Edit this page View SourceCreateUriWithFragment(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
| Edit this page View SourceGetAttributeValue(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
| Edit this page View SourceGetClass()
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
| Edit this page View SourceGetCollectionForFeature(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
| Edit this page View SourceGetCompositionName(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
| Edit this page View SourceGetExpressionForAttribute(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
| Edit this page View SourceGetExpressionForReference(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
| Edit this page View SourceGetModelElementForReference(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
| Edit this page View SourceGetRelativePathForNonIdentifiedChild(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
| Edit this page View SourceSetFeature(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
| Edit this page View SourceToIdentifierString()
Gets the identifier for this model element
Declaration
public override string ToIdentifierString()
Returns
Type | Description |
---|---|
string |