Class InstanceValue
An instance value is a value specification that identifies an instance.
[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//InstanceValue")]
public class InstanceValue : ValueSpecification, IInstanceValue, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
InstanceValue
- Implements
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Instance
The instance that is the specified value.
[XmlElementName("instance")]
[XmlAttribute(true)]
public IInstanceSpecification Instance { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
referencestringThe requested reference in upper case
Returns
- INotifyExpression<IModelElement>
An incremental property expression
GetModelElementForReference(string, int)
Resolves the given URI to a child model element
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Returns
- IModelElement
The model element or null if it could not be found
OnInstanceChanged(ValueChangedEventArgs)
Raises the InstanceChanged event
protected virtual void OnInstanceChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnInstanceChanging(ValueChangedEventArgs)
Raises the InstanceChanging event
protected virtual void OnInstanceChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
InstanceChanged
Gets fired when the Instance property changed its value
public event EventHandler<ValueChangedEventArgs> InstanceChanged
Event Type
InstanceChanging
Gets fired before the Instance property changes its value
public event EventHandler<ValueChangedEventArgs> InstanceChanging