Class DynamicModelElement
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
classIClassThe 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
classIClassThe class for which the model element is an instance
implementedIClassThe 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
IsIdentified
Gets a value indicating whether this item can be identified through its ToString value
public override bool IsIdentified { get; }
Property Value
ReferencedElements
Gets a collection of model elements referenced from this element.
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
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
fragmentstringThe fragment starting from this element
absoluteboolTrue, if an absolute Uri is desired, otherwise false
baseElementIModelElementThe 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
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
featurestringThe 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
containerobjectThe 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
attributestringThe 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
referencestringThe 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
referencestringThe reference name in upper case
indexintThe 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
childIModelElementThe 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
ToIdentifierString()
Gets the identifier for this model element
public override string ToIdentifierString()