Class EClass
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
EGenericSuperTypes
The eGenericSuperTypes property
[XmlElementName("eGenericSuperTypes")]
[XmlAttribute(false)]
[Containment]
public virtual IOrderedSetExpression<IEGenericType> EGenericSuperTypes { get; }
Property Value
EOperations
The eOperations property
[XmlElementName("eOperations")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("eContainingClass")]
public virtual IOrderedSetExpression<IEOperation> EOperations { get; }
Property Value
EStructuralFeatures
The eStructuralFeatures property
[XmlElementName("eStructuralFeatures")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("eContainingClass")]
public virtual IOrderedSetExpression<IEStructuralFeature> EStructuralFeatures { get; }
Property Value
ESuperTypes
The eSuperTypes property
[XmlElementName("eSuperTypes")]
[XmlAttribute(true)]
public virtual IOrderedSetExpression<IEClass> ESuperTypes { get; }
Property Value
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
Methods
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
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
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe 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
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
IModelElementThe 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
ValueChangedEventArgsThe event data
OnAbstractChanging(ValueChangedEventArgs)
Raises the AbstractChanging event
protected virtual void OnAbstractChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnInterfaceChanged(ValueChangedEventArgs)
Raises the InterfaceChanged event
protected virtual void OnInterfaceChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnInterfaceChanging(ValueChangedEventArgs)
Raises the InterfaceChanging event
protected virtual void OnInterfaceChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
AbstractChanged
Gets fired when the Abstract property changed its value
public event EventHandler<ValueChangedEventArgs> AbstractChanged
Event Type
AbstractChanging
Gets fired before the Abstract property changes its value
public event EventHandler<ValueChangedEventArgs> AbstractChanging
Event Type
InterfaceChanged
Gets fired when the Interface property changed its value
public event EventHandler<ValueChangedEventArgs> InterfaceChanged
Event Type
InterfaceChanging
Gets fired before the Interface property changes its value
public event EventHandler<ValueChangedEventArgs> InterfaceChanging