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 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

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

Property Value

IOrderedSetExpression<IEGenericType>

EOperations

The eOperations property

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

Property Value

IOrderedSetExpression<IEOperation>

EStructuralFeatures

The eStructuralFeatures property

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

Property Value

IOrderedSetExpression<IEStructuralFeature>

ESuperTypes

The eSuperTypes property

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

Property Value

IOrderedSetExpression<IEClass>

Interface

The interface property

[XmlElementName("interface")]
[XmlAttribute(true)]
public 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

GetCompositionName(object)

Gets the property name for the given container

protected override string GetCompositionName(object container)

Parameters

container object

The container object

Returns

string

The name of the respective container reference

GetEOperation(int)

public IEOperation GetEOperation(int operationID)

Parameters

operationID int

Returns

IEOperation

GetEStructuralFeature(int)

public IEStructuralFeature GetEStructuralFeature(int featureID)

Parameters

featureID int

Returns

IEStructuralFeature

GetEStructuralFeature(string)

public IEStructuralFeature GetEStructuralFeature(string featureName)

Parameters

featureName string

Returns

IEStructuralFeature

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

GetFeatureCount()

public int GetFeatureCount()

Returns

int

GetFeatureID(IEStructuralFeature)

public int GetFeatureID(IEStructuralFeature feature)

Parameters

feature IEStructuralFeature

Returns

int

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

GetOperationCount()

public int GetOperationCount()

Returns

int

GetOperationID(IEOperation)

public int GetOperationID(IEOperation operation)

Parameters

operation IEOperation

Returns

int

GetOverride(IEOperation)

public IEOperation GetOverride(IEOperation operation)

Parameters

operation IEOperation

Returns

IEOperation

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

IsSuperTypeOf(IEClass)

public bool IsSuperTypeOf(IEClass someClass)

Parameters

someClass IEClass

Returns

bool

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

OnGetEOperationCalled(OperationCallEventArgs)

Raises the GetEOperationCalled event

protected virtual void OnGetEOperationCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetEOperationCalling(OperationCallEventArgs)

Raises the GetEOperationCalling event

protected virtual void OnGetEOperationCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetEStructuralFeatureCalled(OperationCallEventArgs)

Raises the GetEStructuralFeatureCalled event

protected virtual void OnGetEStructuralFeatureCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetEStructuralFeatureCalled_(OperationCallEventArgs)

Raises the GetEStructuralFeatureCalled event

protected virtual void OnGetEStructuralFeatureCalled_(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetEStructuralFeatureCalling(OperationCallEventArgs)

Raises the GetEStructuralFeatureCalling event

protected virtual void OnGetEStructuralFeatureCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetEStructuralFeatureCalling_(OperationCallEventArgs)

Raises the GetEStructuralFeatureCalling event

protected virtual void OnGetEStructuralFeatureCalling_(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetFeatureCountCalled(OperationCallEventArgs)

Raises the GetFeatureCountCalled event

protected virtual void OnGetFeatureCountCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetFeatureCountCalling(OperationCallEventArgs)

Raises the GetFeatureCountCalling event

protected virtual void OnGetFeatureCountCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetFeatureIDCalled(OperationCallEventArgs)

Raises the GetFeatureIDCalled event

protected virtual void OnGetFeatureIDCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetFeatureIDCalling(OperationCallEventArgs)

Raises the GetFeatureIDCalling event

protected virtual void OnGetFeatureIDCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOperationCountCalled(OperationCallEventArgs)

Raises the GetOperationCountCalled event

protected virtual void OnGetOperationCountCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOperationCountCalling(OperationCallEventArgs)

Raises the GetOperationCountCalling event

protected virtual void OnGetOperationCountCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOperationIDCalled(OperationCallEventArgs)

Raises the GetOperationIDCalled event

protected virtual void OnGetOperationIDCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOperationIDCalling(OperationCallEventArgs)

Raises the GetOperationIDCalling event

protected virtual void OnGetOperationIDCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOverrideCalled(OperationCallEventArgs)

Raises the GetOverrideCalled event

protected virtual void OnGetOverrideCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnGetOverrideCalling(OperationCallEventArgs)

Raises the GetOverrideCalling event

protected virtual void OnGetOverrideCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

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

OnIsSuperTypeOfCalled(OperationCallEventArgs)

Raises the IsSuperTypeOfCalled event

protected virtual void OnIsSuperTypeOfCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsSuperTypeOfCalling(OperationCallEventArgs)

Raises the IsSuperTypeOfCalling event

protected virtual void OnIsSuperTypeOfCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

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>

GetEOperationCalled

Gets fired after the operation getEOperation got called

public event EventHandler<OperationCallEventArgs> GetEOperationCalled

Event Type

EventHandler<OperationCallEventArgs>

GetEOperationCalling

Gets fired before the operation getEOperation gets called

public event EventHandler<OperationCallEventArgs> GetEOperationCalling

Event Type

EventHandler<OperationCallEventArgs>

GetEStructuralFeatureCalled

Gets fired after the operation getEStructuralFeature got called

public event EventHandler<OperationCallEventArgs> GetEStructuralFeatureCalled

Event Type

EventHandler<OperationCallEventArgs>

GetEStructuralFeatureCalled_

Gets fired after the operation getEStructuralFeature got called

public event EventHandler<OperationCallEventArgs> GetEStructuralFeatureCalled_

Event Type

EventHandler<OperationCallEventArgs>

GetEStructuralFeatureCalling

Gets fired before the operation getEStructuralFeature gets called

public event EventHandler<OperationCallEventArgs> GetEStructuralFeatureCalling

Event Type

EventHandler<OperationCallEventArgs>

GetEStructuralFeatureCalling_

Gets fired before the operation getEStructuralFeature gets called

public event EventHandler<OperationCallEventArgs> GetEStructuralFeatureCalling_

Event Type

EventHandler<OperationCallEventArgs>

GetFeatureCountCalled

Gets fired after the operation getFeatureCount got called

public event EventHandler<OperationCallEventArgs> GetFeatureCountCalled

Event Type

EventHandler<OperationCallEventArgs>

GetFeatureCountCalling

Gets fired before the operation getFeatureCount gets called

public event EventHandler<OperationCallEventArgs> GetFeatureCountCalling

Event Type

EventHandler<OperationCallEventArgs>

GetFeatureIDCalled

Gets fired after the operation getFeatureID got called

public event EventHandler<OperationCallEventArgs> GetFeatureIDCalled

Event Type

EventHandler<OperationCallEventArgs>

GetFeatureIDCalling

Gets fired before the operation getFeatureID gets called

public event EventHandler<OperationCallEventArgs> GetFeatureIDCalling

Event Type

EventHandler<OperationCallEventArgs>

GetOperationCountCalled

Gets fired after the operation getOperationCount got called

public event EventHandler<OperationCallEventArgs> GetOperationCountCalled

Event Type

EventHandler<OperationCallEventArgs>

GetOperationCountCalling

Gets fired before the operation getOperationCount gets called

public event EventHandler<OperationCallEventArgs> GetOperationCountCalling

Event Type

EventHandler<OperationCallEventArgs>

GetOperationIDCalled

Gets fired after the operation getOperationID got called

public event EventHandler<OperationCallEventArgs> GetOperationIDCalled

Event Type

EventHandler<OperationCallEventArgs>

GetOperationIDCalling

Gets fired before the operation getOperationID gets called

public event EventHandler<OperationCallEventArgs> GetOperationIDCalling

Event Type

EventHandler<OperationCallEventArgs>

GetOverrideCalled

Gets fired after the operation getOverride got called

public event EventHandler<OperationCallEventArgs> GetOverrideCalled

Event Type

EventHandler<OperationCallEventArgs>

GetOverrideCalling

Gets fired before the operation getOverride gets called

public event EventHandler<OperationCallEventArgs> GetOverrideCalling

Event Type

EventHandler<OperationCallEventArgs>

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>

IsSuperTypeOfCalled

Gets fired after the operation isSuperTypeOf got called

public event EventHandler<OperationCallEventArgs> IsSuperTypeOfCalled

Event Type

EventHandler<OperationCallEventArgs>

IsSuperTypeOfCalling

Gets fired before the operation isSuperTypeOf gets called

public event EventHandler<OperationCallEventArgs> IsSuperTypeOfCalling

Event Type

EventHandler<OperationCallEventArgs>