Table of Contents

Class EClass

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

The default implementation of the EClass class

[XmlNamespace("http://www.eclipse.org/emf/2002/Ecore")]
[XmlNamespacePrefix("ecore")]
[ModelRepresentationClass("http://www.eclipse.org/emf/2002/Ecore#//EClass/")]
public class EClass : EClassifier, IEClass, IEClassifier, IENamedElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
EClass
Implements
Inherited Members

Constructors

EClass()

Creates a new instance

public EClass()

Properties

Abstract

The abstract property

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

Property Value

bool?

Children

Gets the child model elements of this model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

EGenericSuperTypes

The eGenericSuperTypes property

[XmlElementName("eGenericSuperTypes")]
[XmlAttribute(false)]
[Containment]
public virtual IOrderedSetExpression<IEGenericType> EGenericSuperTypes { get; }

Property Value

IOrderedSetExpression<IEGenericType>

EOperations

The eOperations property

[XmlElementName("eOperations")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("eContainingClass")]
public virtual IOrderedSetExpression<IEOperation> EOperations { get; }

Property Value

IOrderedSetExpression<IEOperation>

EStructuralFeatures

The eStructuralFeatures property

[XmlElementName("eStructuralFeatures")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("eContainingClass")]
public virtual IOrderedSetExpression<IEStructuralFeature> EStructuralFeatures { get; }

Property Value

IOrderedSetExpression<IEStructuralFeature>

ESuperTypes

The eSuperTypes property

[XmlElementName("eSuperTypes")]
[XmlAttribute(true)]
public virtual IOrderedSetExpression<IEClass> ESuperTypes { get; }

Property Value

IOrderedSetExpression<IEClass>

Interface

The interface property

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

Property Value

bool?

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

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

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

GetRelativePathForNonIdentifiedChild(IModelElement)

Gets the relative URI fragment for the given child model element

protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)

Parameters

element IModelElement

The element that should be looked for

Returns

string

A fragment of the relative URI

OnAbstractChanged(ValueChangedEventArgs)

Raises the AbstractChanged event

protected virtual void OnAbstractChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnAbstractChanging(ValueChangedEventArgs)

Raises the AbstractChanging event

protected virtual void OnAbstractChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnInterfaceChanged(ValueChangedEventArgs)

Raises the InterfaceChanged event

protected virtual void OnInterfaceChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnInterfaceChanging(ValueChangedEventArgs)

Raises the InterfaceChanging event

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

AbstractChanged

Gets fired when the Abstract property changed its value

public event EventHandler<ValueChangedEventArgs> AbstractChanged

Event Type

EventHandler<ValueChangedEventArgs>

AbstractChanging

Gets fired before the Abstract property changes its value

public event EventHandler<ValueChangedEventArgs> AbstractChanging

Event Type

EventHandler<ValueChangedEventArgs>

InterfaceChanged

Gets fired when the Interface property changed its value

public event EventHandler<ValueChangedEventArgs> InterfaceChanged

Event Type

EventHandler<ValueChangedEventArgs>

InterfaceChanging

Gets fired before the Interface property changes its value

public event EventHandler<ValueChangedEventArgs> InterfaceChanging

Event Type

EventHandler<ValueChangedEventArgs>