org.eclipse.emf.ecore.impl
Class EFactoryImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                  extended byorg.eclipse.emf.ecore.impl.EFactoryImpl
All Implemented Interfaces:
EFactory, EModelElement, EObject, InternalEObject, Notifier
Direct Known Subclasses:
ChangeFactoryImpl, Ecore2EcoreFactoryImpl, Ecore2XMLFactoryImpl, EcoreFactoryImpl, GenModelFactoryImpl, MappingFactoryImpl, TreeFactoryImpl, XMLNamespaceFactoryImpl, XMLTypeFactoryImpl

public class EFactoryImpl
extends EModelElementImpl
implements EFactory

An implementation of the model object 'EFactory'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static DateFormat[] EDATE_FORMATS
           
protected  EPackage ePackage
          The cached value of the 'EPackage' reference
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EFactoryImpl()
           
 
Method Summary
protected  EObject basicCreate(EClass eClass)
           
 NotificationChain basicSetEPackage(EPackage newEPackage, NotificationChain msgs)
           
protected  String collapseWhiteSpace(String value)
           
 String convertToString(EDataType eDataType, Object objectValue)
           Returns the literal value of the instance.
 EObject create(EClass eClass)
           Creates a new instance of the class and returns it.
 Object createFromString(EDataType eDataType, String stringValue)
           Creates an instance of the data type from the literal value.
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 EPackage getEPackage()
           
protected  String replaceWhiteSpace(String value)
           
 void setEPackage(EPackage newEPackage)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, freeze, getEAnnotation, getEAnnotations, isFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
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, eContainingFeature, 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()

EDATE_FORMATS

protected static final DateFormat[] EDATE_FORMATS
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
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
Parameters:
newEPackage - 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,
                                     Class baseClass,
                                     NotificationChain msgs)

Specified by:
eInverseAdd in interface InternalEObject
Overrides:
eInverseAdd in class EModelElementImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Specified by:
eInverseRemove in interface InternalEObject
Overrides:
eInverseRemove in class EModelElementImpl

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
Parameters:
eClass - the class of the new instance.
Returns:
a new instance of the class.

basicCreate

protected EObject basicCreate(EClass eClass)

createFromString

public Object createFromString(EDataType eDataType,
                               String stringValue)
Description copied from interface: EFactory
Creates an instance of the data type from the literal value.

Specified by:
createFromString in interface EFactory
Parameters:
stringValue - literal value of the instance.
Returns:
an instance of the data type.
See Also:
EFactory.convertToString(EDataType, Object)

convertToString

public String convertToString(EDataType eDataType,
                              Object objectValue)
Description copied from interface: EFactory
Returns the literal value of the instance.

Specified by:
convertToString in interface EFactory
Parameters:
eDataType - the data type of the value.
objectValue - the value.
Returns:
the literal value of the instance.
See Also:
EFactory.createFromString(EDataType, String)

replaceWhiteSpace

protected String replaceWhiteSpace(String value)

collapseWhiteSpace

protected String collapseWhiteSpace(String value)

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface EObject
Overrides:
eGet in class EModelElementImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EModelElementImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface EObject
Overrides:
eSet in class EModelElementImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EModelElementImpl

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