org.eclipse.emf.ecore.impl
Class EFactoryImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.ecore.impl.EModelElementImpl
|
+--org.eclipse.emf.ecore.impl.EFactoryImpl
- All Implemented Interfaces:
- EFactory, EModelElement, EObject, InternalEObject, Notifier
- Direct Known Subclasses:
- EcoreFactoryImpl, GenModelFactoryImpl, MappingFactoryImpl, TreeFactoryImpl
- public class EFactoryImpl
- extends EModelElementImpl
- implements EFactory
An implementation of the model object 'EFactory'.
The following features are implemented:
Method Summary |
NotificationChain |
basicSetEPackage(EPackage newEPackage,
NotificationChain msgs)
|
java.lang.String |
convertToString(EDataType eDataType,
java.lang.Object objectValue)
Returns the literal value of the instance. |
EObject |
create(EClass eClass)
Creates a new instance of the class and returns it. |
java.lang.Object |
createFromString(EDataType eDataType,
java.lang.String stringValue)
Creates an instance of the data type from the literal value. |
java.lang.Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
EPackage |
getEPackage()
|
void |
setEPackage(EPackage newEPackage)
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalContainer, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ePackage
protected EPackage ePackage
- The cached value of the '
EPackage
' reference.
- See Also:
getEPackage()
EFactoryImpl
protected EFactoryImpl()
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class EModelElementImpl
getEPackage
public EPackage getEPackage()
-
- Specified by:
getEPackage
in interface EFactory
- Following copied from interface:
org.eclipse.emf.ecore.EFactory
- Returns:
- the value of the 'EPackage' reference.
- See Also:
EFactory.setEPackage(EPackage)
,
EcorePackage.getEFactory_EPackage()
,
EPackage.getEFactoryInstance()
setEPackage
public void setEPackage(EPackage newEPackage)
-
- Specified by:
setEPackage
in interface EFactory
- Following copied from interface:
org.eclipse.emf.ecore.EFactory
- Parameters:
value
- the new value of the 'EPackage' reference.- See Also:
EFactory.getEPackage()
basicSetEPackage
public NotificationChain basicSetEPackage(EPackage newEPackage,
NotificationChain msgs)
-
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseAdd
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
create
public EObject create(EClass eClass)
- Description copied from interface:
EFactory
-
Creates a new instance of the class and returns it.
- Specified by:
create
in interface EFactory
- Following copied from interface:
org.eclipse.emf.ecore.EFactory
- Parameters:
eClass
- the class of the new instance.- Returns:
- a new instance of the class.
createFromString
public java.lang.Object createFromString(EDataType eDataType,
java.lang.String stringValue)
- Description copied from interface:
EFactory
-
Creates an instance of the data type from the literal value.
- Specified by:
createFromString
in interface EFactory
- Following copied from interface:
org.eclipse.emf.ecore.EFactory
- Parameters:
the
- literal value of the instance.- Returns:
- an instance of the data type.
- See Also:
EFactory.convertToString(EDataType, Object)
convertToString
public java.lang.String convertToString(EDataType eDataType,
java.lang.Object objectValue)
- Description copied from interface:
EFactory
-
Returns the literal value of the instance.
- Specified by:
convertToString
in interface EFactory
- Following copied from interface:
org.eclipse.emf.ecore.EFactory
- Parameters:
eDataType
- the data type of the value.instanceValue
- the value.- Returns:
- the literal value of the instance.
- See Also:
EFactory.createFromString(EDataType, String)
eGet
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to fetch.resolve
- whether to resolve.- Returns:
- the value of the given feature of the object.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
InternalEList.basicIterator()
,
InternalEList.basicList()
,
EcoreUtil.resolve(EObject, ResourceSet)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature)
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface EObject
- Overrides:
eIsSet
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Returns:
- whether the feature of the object is set.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eSet
public void eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface EObject
- Overrides:
eSet
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to set.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.java.lang.ClassCastException
- if there is a type conflict.ArrayStoreException
- if there is a type conflect.- See Also:
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface EObject
- Overrides:
eUnset
in class EModelElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.- See Also:
EObject.eIsSet(EStructuralFeature)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eGet(EStructuralFeature, boolean)