Table of Contents

Class InstanceValue

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

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

IClass

Instance

The instance that is the specified value.

[XmlElementName("instance")]
[XmlAttribute(true)]
public IInstanceSpecification Instance { get; set; }

Property Value

IInstanceSpecification

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The 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

reference string

The requested reference name

index int

The index of this reference

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

eventArgs ValueChangedEventArgs

The event data

OnInstanceChanging(ValueChangedEventArgs)

Raises the InstanceChanging event

protected virtual void OnInstanceChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

Events

InstanceChanged

Gets fired when the Instance property changed its value

public event EventHandler<ValueChangedEventArgs> InstanceChanged

Event Type

EventHandler<ValueChangedEventArgs>

InstanceChanging

Gets fired before the Instance property changes its value

public event EventHandler<ValueChangedEventArgs> InstanceChanging

Event Type

EventHandler<ValueChangedEventArgs>