Table of Contents

Class EReference

Namespace
NMF.Interop.Ecore
Assembly
NMF.EcoreInterop.dll

The default implementation of the EReference class

[XmlNamespace("http://www.eclipse.org/emf/2002/Ecore")]
[XmlNamespacePrefix("ecore")]
[ModelRepresentationClass("http://www.eclipse.org/emf/2002/Ecore#//EReference/")]
public class EReference : EStructuralFeature, IEReference, IEStructuralFeature, IETypedElement, IENamedElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
EReference
Implements
Inherited Members

Constructors

EReference()

Creates a new instance

public EReference()

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Containment

The containment property

[XmlElementName("containment")]
[XmlAttribute(true)]
public virtual bool? Containment { get; set; }

Property Value

bool?

EKeys

The eKeys property

[XmlElementName("eKeys")]
[XmlAttribute(true)]
public virtual IOrderedSetExpression<IEAttribute> EKeys { get; }

Property Value

IOrderedSetExpression<IEAttribute>

EOpposite

The eOpposite property

[XmlElementName("eOpposite")]
[XmlAttribute(true)]
public virtual IEReference EOpposite { get; set; }

Property Value

IEReference

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

ResolveProxies

The resolveProxies property

[XmlElementName("resolveProxies")]
[XmlAttribute(true)]
public virtual bool? ResolveProxies { get; set; }

Property Value

bool?

Methods

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

Returns

object

The attribute value or null if it could not be found

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

GetExpressionForAttribute(string)

Gets the property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The requested attribute in upper case

Returns

INotifyExpression<object>

An incremental property expression

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

OnContainmentChanged(ValueChangedEventArgs)

Raises the ContainmentChanged event

protected virtual void OnContainmentChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnContainmentChanging(ValueChangedEventArgs)

Raises the ContainmentChanging event

protected virtual void OnContainmentChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnEOppositeChanged(ValueChangedEventArgs)

Raises the EOppositeChanged event

protected virtual void OnEOppositeChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnEOppositeChanging(ValueChangedEventArgs)

Raises the EOppositeChanging event

protected virtual void OnEOppositeChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnResolveProxiesChanged(ValueChangedEventArgs)

Raises the ResolveProxiesChanged event

protected virtual void OnResolveProxiesChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnResolveProxiesChanging(ValueChangedEventArgs)

Raises the ResolveProxiesChanging event

protected virtual void OnResolveProxiesChanging(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

ContainmentChanged

Gets fired when the Containment property changed its value

public event EventHandler<ValueChangedEventArgs> ContainmentChanged

Event Type

EventHandler<ValueChangedEventArgs>

ContainmentChanging

Gets fired before the Containment property changes its value

public event EventHandler<ValueChangedEventArgs> ContainmentChanging

Event Type

EventHandler<ValueChangedEventArgs>

EOppositeChanged

Gets fired when the EOpposite property changed its value

public event EventHandler<ValueChangedEventArgs> EOppositeChanged

Event Type

EventHandler<ValueChangedEventArgs>

EOppositeChanging

Gets fired before the EOpposite property changes its value

public event EventHandler<ValueChangedEventArgs> EOppositeChanging

Event Type

EventHandler<ValueChangedEventArgs>

ResolveProxiesChanged

Gets fired when the ResolveProxies property changed its value

public event EventHandler<ValueChangedEventArgs> ResolveProxiesChanged

Event Type

EventHandler<ValueChangedEventArgs>

ResolveProxiesChanging

Gets fired before the ResolveProxies property changes its value

public event EventHandler<ValueChangedEventArgs> ResolveProxiesChanging

Event Type

EventHandler<ValueChangedEventArgs>