Class EReference
The default implementation of the EReference class
Inheritance
Implements
Inherited Members
Namespace: NMF.Interop.Ecore
Assembly: NMF.EcoreInterop.dll
Syntax
[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
Constructors
| Edit this page View SourceEReference()
Declaration
public EReference()
Properties
| Edit this page View SourceClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
Containment
The containment property
Declaration
[XmlElementName("containment")]
[XmlAttribute(true)]
public virtual bool? Containment { get; set; }
Property Value
Type | Description |
---|---|
bool? |
EKeys
The eKeys property
Declaration
[XmlElementName("eKeys")]
[XmlAttribute(true)]
public virtual IOrderedSetExpression<IEAttribute> EKeys { get; }
Property Value
Type | Description |
---|---|
IOrderedSetExpression<IEAttribute> |
EOpposite
The eOpposite property
Declaration
[XmlElementName("eOpposite")]
[XmlAttribute(true)]
public virtual IEReference EOpposite { get; set; }
Property Value
Type | Description |
---|---|
IEReference |
ReferencedElements
Gets the referenced model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
| Edit this page View SourceResolveProxies
The resolveProxies property
Declaration
[XmlElementName("resolveProxies")]
[XmlAttribute(true)]
public virtual bool? ResolveProxies { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
| Edit this page View SourceGetAttributeValue(string, int)
Resolves the given attribute name
Declaration
protected override object GetAttributeValue(string attribute, int index)
Parameters
Type | Name | Description |
---|---|---|
string | attribute | The requested attribute name |
int | index | The index of this attribute |
Returns
Type | Description |
---|---|
object | The attribute value or null if it could not be found |
Overrides
| Edit this page View SourceGetClass()
Gets the Class for this model element
Declaration
public override IClass GetClass()
Returns
Type | Description |
---|---|
IClass |
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 requested feature |
Returns
Type | Description |
---|---|
IList | A non-generic list of elements |
Overrides
| Edit this page View SourceGetExpressionForAttribute(string)
Gets the 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> | An incremental property expression |
Overrides
| Edit this page View SourceGetExpressionForReference(string)
Gets the property expression for the given reference
Declaration
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
Type | Name | Description |
---|---|---|
string | reference | The requested reference in upper case |
Returns
Type | Description |
---|---|
INotifyExpression<IModelElement> | An incremental property expression |
Overrides
| Edit this page View SourceOnContainmentChanged(ValueChangedEventArgs)
Raises the ContainmentChanged event
Declaration
protected virtual void OnContainmentChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnContainmentChanging(ValueChangedEventArgs)
Raises the ContainmentChanging event
Declaration
protected virtual void OnContainmentChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnEOppositeChanged(ValueChangedEventArgs)
Raises the EOppositeChanged event
Declaration
protected virtual void OnEOppositeChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnEOppositeChanging(ValueChangedEventArgs)
Raises the EOppositeChanging event
Declaration
protected virtual void OnEOppositeChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnResolveProxiesChanged(ValueChangedEventArgs)
Raises the ResolveProxiesChanged event
Declaration
protected virtual void OnResolveProxiesChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnResolveProxiesChanging(ValueChangedEventArgs)
Raises the ResolveProxiesChanging event
Declaration
protected virtual void OnResolveProxiesChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
SetFeature(string, object)
Sets a value to the given feature
Declaration
protected override void SetFeature(string feature, object value)
Parameters
Type | Name | Description |
---|---|---|
string | feature | The requested feature |
object | value | The value that should be set to that feature |
Overrides
Events
| Edit this page View SourceContainmentChanged
Gets fired when the Containment property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> ContainmentChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
ContainmentChanging
Gets fired before the Containment property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> ContainmentChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
EOppositeChanged
Gets fired when the EOpposite property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> EOppositeChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
EOppositeChanging
Gets fired before the EOpposite property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> EOppositeChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
ResolveProxiesChanged
Gets fired when the ResolveProxies property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> ResolveProxiesChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
ResolveProxiesChanging
Gets fired before the ResolveProxies property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> ResolveProxiesChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |