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

public class EFactoryImpl
extends EModelElementImpl
implements EFactory

An implementation of the model object 'EFactory'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder
 
Field Summary
protected  EPackage ePackage
          The cached value of the 'EPackage' reference.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EFactoryImpl()
           
 
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.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ePackage

protected EPackage ePackage
The cached value of the 'EPackage' reference.
See Also:
getEPackage()
Constructor Detail

EFactoryImpl

protected EFactoryImpl()
Method Detail

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

Copyright 2001-2002 IBM Corporation and others.
All Rights Reserved.