Table of Contents

Class EAttribute

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

The default implementation of the EAttribute class

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

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

ID

The iD property

[XmlElementName("iD")]
[XmlAttribute(true)]
public virtual bool? ID { 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

OnIDChanged(ValueChangedEventArgs)

Raises the IDChanged event

protected virtual void OnIDChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIDChanging(ValueChangedEventArgs)

Raises the IDChanging event

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

IDChanged

Gets fired when the ID property changed its value

public event EventHandler<ValueChangedEventArgs> IDChanged

Event Type

EventHandler<ValueChangedEventArgs>

IDChanging

Gets fired before the ID property changes its value

public event EventHandler<ValueChangedEventArgs> IDChanging

Event Type

EventHandler<ValueChangedEventArgs>