Class EFactory
The default implementation of the EFactory class
[XmlNamespace("http://www.eclipse.org/emf/2002/Ecore")]
[XmlNamespacePrefix("ecore")]
[ModelRepresentationClass("http://www.eclipse.org/emf/2002/Ecore#//EFactory/")]
public class EFactory : EModelElement, IEFactory, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
EFactory
- Implements
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
EPackage
The ePackage property
[XmlElementName("ePackage")]
[XmlAttribute(true)]
[XmlOpposite("eFactoryInstance")]
public virtual IEPackage EPackage { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForAttribute(string)
Gets the property expression for the given attribute
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
attribute
stringThe requested attribute in upper case
Returns
- INotifyExpression<object>
An incremental property expression
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe requested reference in upper case
Returns
- INotifyExpression<IModelElement>
An incremental property expression
OnEPackageChanged(ValueChangedEventArgs)
Raises the EPackageChanged event
protected virtual void OnEPackageChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnEPackageChanging(ValueChangedEventArgs)
Raises the EPackageChanging event
protected virtual void OnEPackageChanging(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
EPackageChanged
Gets fired when the EPackage property changed its value
public event EventHandler<ValueChangedEventArgs> EPackageChanged
Event Type
EPackageChanging
Gets fired before the EPackage property changes its value
public event EventHandler<ValueChangedEventArgs> EPackageChanging