org.eclipse.emf.ecore.impl
Class EcoreFactoryImpl

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.FlatEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                      extended byorg.eclipse.emf.ecore.impl.EFactoryImpl
                          extended byorg.eclipse.emf.ecore.impl.EcoreFactoryImpl
All Implemented Interfaces:
EcoreFactory, EFactory, EModelElement, EObject, InternalEObject, Notifier

public class EcoreFactoryImpl
extends EFactoryImpl
implements EcoreFactory

An implementation of the model Factory.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, 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 char[] HEX_DIGITS
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
EDATE_FORMATS, ePackage
 
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.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EcoreFactory
eINSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
EcoreFactoryImpl()
          Creates an instance of the factory
 
Method Summary
protected  Boolean booleanValueOf(String initialValue)
           
 String convertEBigDecimalToString(EDataType eDataType, Object instanceValue)
           
 String convertEBigIntegerToString(EDataType eDataType, Object instanceValue)
           
 String convertEBooleanObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEBooleanToString(EDataType metaObject, Object instanceValue)
           
 String convertEByteArrayToString(EDataType eDataType, Object instanceValue)
           
 String convertEByteObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEByteToString(EDataType metaObject, Object instanceValue)
           
 String convertECharacterObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertECharToString(EDataType metaObject, Object instanceValue)
           
 String convertEDateToString(EDataType eDataType, Object instanceValue)
           
 String convertEDoubleObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEDoubleToString(EDataType metaObject, Object instanceValue)
           
 String convertEFeatureMapEntryToString(EDataType eDataType, Object instanceValue)
           
 String convertEFloatObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEFloatToString(EDataType metaObject, Object instanceValue)
           
 String convertEIntegerObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEIntToString(EDataType metaObject, Object instanceValue)
           
 String convertEJavaClassToString(EDataType metaObject, Object instanceValue)
           
 String convertELongObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertELongToString(EDataType metaObject, Object instanceValue)
           
 String convertEShortObjectToString(EDataType metaObject, Object instanceValue)
           
 String convertEShortToString(EDataType metaObject, Object instanceValue)
           
 String convertEStringToString(EDataType metaObject, Object instanceValue)
           
 String convertToString(EDataType eDataType, Object instanceValue)
           
 EObject create(EClass eClass)
           
 EAnnotation createEAnnotation()
           
 EAttribute createEAttribute()
           
 BigDecimal createEBigDecimalFromString(EDataType eDataType, String initialValue)
           
 BigInteger createEBigIntegerFromString(EDataType eDataType, String initialValue)
           
 Boolean createEBooleanFromString(EDataType metaObject, String initialValue)
           
 Boolean createEBooleanObjectFromString(EDataType metaObject, String initialValue)
           
 byte[] createEByteArrayFromString(EDataType eDataType, String initialValue)
           
 Byte createEByteFromString(EDataType metaObject, String initialValue)
           
 Byte createEByteObjectFromString(EDataType metaObject, String initialValue)
           
 Character createECharacterObjectFromString(EDataType metaObject, String initialValue)
           
 Character createECharFromString(EDataType metaObject, String initialValue)
           
 EClass createEClass()
           
 EDataType createEDataType()
           
 Date createEDateFromString(EDataType eDataType, String initialValue)
           
 Double createEDoubleFromString(EDataType metaObject, String initialValue)
           
 Double createEDoubleObjectFromString(EDataType metaObject, String initialValue)
           
 EEnum createEEnum()
           
 EEnumLiteral createEEnumLiteral()
           
 EFactory createEFactory()
           
 FeatureMap.Entry createEFeatureMapEntryFromString(EDataType eDataType, String initialValue)
           
 Float createEFloatFromString(EDataType metaObject, String initialValue)
           
 Float createEFloatObjectFromString(EDataType metaObject, String initialValue)
           
 Integer createEIntegerObjectFromString(EDataType metaObject, String initialValue)
           
 Integer createEIntFromString(EDataType metaObject, String initialValue)
           
 Class createEJavaClassFromString(EDataType metaObject, String initialValue)
           
 Long createELongFromString(EDataType metaObject, String initialValue)
           
 Long createELongObjectFromString(EDataType metaObject, String initialValue)
           
 EObject createEObject()
           
 EOperation createEOperation()
           
 EPackage createEPackage()
           
 EParameter createEParameter()
           
 EReference createEReference()
           
 Short createEShortFromString(EDataType metaObject, String initialValue)
           
 Short createEShortObjectFromString(EDataType metaObject, String initialValue)
           
 String createEStringFromString(EDataType metaObject, String initialValue)
           
 Map.Entry createEStringToStringMapEntry()
           
 Object createFromString(EDataType eDataType, String initialValue)
           
 EcorePackage getEcorePackage()
           
static EcorePackage getPackage()
          Deprecated.  
protected static byte hexCharToByte(char character)
           
static EcoreFactory init()
          Creates the default factory implementation
 
Methods inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
basicCreate, basicSetEPackage, collapseWhiteSpace, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getEPackage, replaceWhiteSpace, setEPackage
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, 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.EFactory
getEPackage, setEPackage
 
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, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
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

HEX_DIGITS

protected static final char[] HEX_DIGITS
Constructor Detail

EcoreFactoryImpl

public EcoreFactoryImpl()
Creates an instance of the factory.

Method Detail

init

public static EcoreFactory init()
Creates the default factory implementation.


create

public EObject create(EClass eClass)

Specified by:
create in interface EFactory
Overrides:
create in class EFactoryImpl

createFromString

public Object createFromString(EDataType eDataType,
                               String initialValue)

Specified by:
createFromString in interface EFactory
Overrides:
createFromString in class EFactoryImpl

convertToString

public String convertToString(EDataType eDataType,
                              Object instanceValue)

Specified by:
convertToString in interface EFactory
Overrides:
convertToString in class EFactoryImpl

createEObject

public EObject createEObject()

Specified by:
createEObject in interface EcoreFactory
Returns:
a new object of class 'EObject'.

createEAttribute

public EAttribute createEAttribute()

Specified by:
createEAttribute in interface EcoreFactory
Returns:
a new object of class 'EAttribute'.

createEAnnotation

public EAnnotation createEAnnotation()

Specified by:
createEAnnotation in interface EcoreFactory
Returns:
a new object of class 'EAnnotation'.

createEClass

public EClass createEClass()

Specified by:
createEClass in interface EcoreFactory
Returns:
a new object of class 'EClass'.

createEDataType

public EDataType createEDataType()

Specified by:
createEDataType in interface EcoreFactory
Returns:
a new object of class 'EData Type'.

createEParameter

public EParameter createEParameter()

Specified by:
createEParameter in interface EcoreFactory
Returns:
a new object of class 'EParameter'.

createEOperation

public EOperation createEOperation()

Specified by:
createEOperation in interface EcoreFactory
Returns:
a new object of class 'EOperation'.

createEPackage

public EPackage createEPackage()

Specified by:
createEPackage in interface EcoreFactory
Returns:
a new object of class 'EPackage'.

createEFactory

public EFactory createEFactory()

Specified by:
createEFactory in interface EcoreFactory
Returns:
a new object of class 'EFactory'.

createEEnumLiteral

public EEnumLiteral createEEnumLiteral()

Specified by:
createEEnumLiteral in interface EcoreFactory
Returns:
a new object of class 'EEnum Literal'.

createEEnum

public EEnum createEEnum()

Specified by:
createEEnum in interface EcoreFactory
Returns:
a new object of class 'EEnum'.

booleanValueOf

protected Boolean booleanValueOf(String initialValue)

createEBooleanObjectFromString

public Boolean createEBooleanObjectFromString(EDataType metaObject,
                                              String initialValue)


convertEBooleanObjectToString

public String convertEBooleanObjectToString(EDataType metaObject,
                                            Object instanceValue)


createECharacterObjectFromString

public Character createECharacterObjectFromString(EDataType metaObject,
                                                  String initialValue)


convertECharacterObjectToString

public String convertECharacterObjectToString(EDataType metaObject,
                                              Object instanceValue)


createEDateFromString

public Date createEDateFromString(EDataType eDataType,
                                  String initialValue)


convertEDateToString

public String convertEDateToString(EDataType eDataType,
                                   Object instanceValue)


createEDoubleObjectFromString

public Double createEDoubleObjectFromString(EDataType metaObject,
                                            String initialValue)


convertEDoubleObjectToString

public String convertEDoubleObjectToString(EDataType metaObject,
                                           Object instanceValue)


createEFloatObjectFromString

public Float createEFloatObjectFromString(EDataType metaObject,
                                          String initialValue)


convertEFloatObjectToString

public String convertEFloatObjectToString(EDataType metaObject,
                                          Object instanceValue)


createEIntegerObjectFromString

public Integer createEIntegerObjectFromString(EDataType metaObject,
                                              String initialValue)


convertEIntegerObjectToString

public String convertEIntegerObjectToString(EDataType metaObject,
                                            Object instanceValue)


createEReference

public EReference createEReference()

Specified by:
createEReference in interface EcoreFactory
Returns:
a new object of class 'EReference'.

createEStringToStringMapEntry

public Map.Entry createEStringToStringMapEntry()


createEBigDecimalFromString

public BigDecimal createEBigDecimalFromString(EDataType eDataType,
                                              String initialValue)


convertEBigDecimalToString

public String convertEBigDecimalToString(EDataType eDataType,
                                         Object instanceValue)


createEBigIntegerFromString

public BigInteger createEBigIntegerFromString(EDataType eDataType,
                                              String initialValue)


convertEBigIntegerToString

public String convertEBigIntegerToString(EDataType eDataType,
                                         Object instanceValue)


getEcorePackage

public EcorePackage getEcorePackage()

Specified by:
getEcorePackage in interface EcoreFactory
Returns:
the package supported by this factory.

getPackage

public static EcorePackage getPackage()
Deprecated.  


createEStringFromString

public String createEStringFromString(EDataType metaObject,
                                      String initialValue)


convertEStringToString

public String convertEStringToString(EDataType metaObject,
                                     Object instanceValue)


createEFeatureMapEntryFromString

public FeatureMap.Entry createEFeatureMapEntryFromString(EDataType eDataType,
                                                         String initialValue)


convertEFeatureMapEntryToString

public String convertEFeatureMapEntryToString(EDataType eDataType,
                                              Object instanceValue)


createEIntFromString

public Integer createEIntFromString(EDataType metaObject,
                                    String initialValue)


convertEIntToString

public String convertEIntToString(EDataType metaObject,
                                  Object instanceValue)


createEBooleanFromString

public Boolean createEBooleanFromString(EDataType metaObject,
                                        String initialValue)


convertEBooleanToString

public String convertEBooleanToString(EDataType metaObject,
                                      Object instanceValue)


createEByteObjectFromString

public Byte createEByteObjectFromString(EDataType metaObject,
                                        String initialValue)


convertEByteObjectToString

public String convertEByteObjectToString(EDataType metaObject,
                                         Object instanceValue)


createEFloatFromString

public Float createEFloatFromString(EDataType metaObject,
                                    String initialValue)


convertEFloatToString

public String convertEFloatToString(EDataType metaObject,
                                    Object instanceValue)


createECharFromString

public Character createECharFromString(EDataType metaObject,
                                       String initialValue)


convertECharToString

public String convertECharToString(EDataType metaObject,
                                   Object instanceValue)


createELongFromString

public Long createELongFromString(EDataType metaObject,
                                  String initialValue)


convertELongToString

public String convertELongToString(EDataType metaObject,
                                   Object instanceValue)


createEDoubleFromString

public Double createEDoubleFromString(EDataType metaObject,
                                      String initialValue)


convertEDoubleToString

public String convertEDoubleToString(EDataType metaObject,
                                     Object instanceValue)


createEByteFromString

public Byte createEByteFromString(EDataType metaObject,
                                  String initialValue)


convertEByteToString

public String convertEByteToString(EDataType metaObject,
                                   Object instanceValue)


createEByteArrayFromString

public byte[] createEByteArrayFromString(EDataType eDataType,
                                         String initialValue)


hexCharToByte

protected static byte hexCharToByte(char character)

convertEByteArrayToString

public String convertEByteArrayToString(EDataType eDataType,
                                        Object instanceValue)


createEShortFromString

public Short createEShortFromString(EDataType metaObject,
                                    String initialValue)


convertEShortToString

public String convertEShortToString(EDataType metaObject,
                                    Object instanceValue)


createEJavaClassFromString

public Class createEJavaClassFromString(EDataType metaObject,
                                        String initialValue)


convertEJavaClassToString

public String convertEJavaClassToString(EDataType metaObject,
                                        Object instanceValue)


createELongObjectFromString

public Long createELongObjectFromString(EDataType metaObject,
                                        String initialValue)


convertELongObjectToString

public String convertELongObjectToString(EDataType metaObject,
                                         Object instanceValue)


createEShortObjectFromString

public Short createEShortObjectFromString(EDataType metaObject,
                                          String initialValue)


convertEShortObjectToString

public String convertEShortObjectToString(EDataType metaObject,
                                          Object instanceValue)


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