org.eclipse.emf.ecore.change.impl
Class ChangeFactoryImpl

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.change.impl.ChangeFactoryImpl
All Implemented Interfaces:
ChangeFactory, EFactory, EModelElement, EObject, InternalEObject, Notifier

public class ChangeFactoryImpl
extends EFactoryImpl
implements ChangeFactory

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
 
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.change.ChangeFactory
eINSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
ChangeFactoryImpl()
          Creates an instance of the factory
 
Method Summary
 String convertChangeKindToString(EDataType eDataType, Object instanceValue)
           
 String convertToString(EDataType eDataType, Object instanceValue)
           
 EObject create(EClass eClass)
           
 ChangeDescription createChangeDescription()
           
 ChangeKind createChangeKindFromString(EDataType eDataType, String initialValue)
           
 Map.Entry createEObjectToChangesMapEntry()
           
 Map.Entry createEObjectToChangesMapEntry(EObject eObject)
           
 FeatureChange createFeatureChange()
           
 FeatureChange createFeatureChange(EStructuralFeature feature, Object oldValue, boolean oldIsSet)
           
 FeatureMapEntry createFeatureMapEntry()
           
 FeatureMapEntry createFeatureMapEntry(EStructuralFeature feature, Object value)
           
 Object createFromString(EDataType eDataType, String initialValue)
           
 ListChange createListChange()
           
 ResourceChange createResourceChange()
           
 ResourceChange createResourceChange(Resource resource, EList oldValue)
           
 ChangePackage getChangePackage()
           
static ChangePackage getPackage()
          Deprecated.  
static ChangeFactory 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
 

Constructor Detail

ChangeFactoryImpl

public ChangeFactoryImpl()
Creates an instance of the factory.

Method Detail

init

public static ChangeFactory 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

createChangeDescription

public ChangeDescription createChangeDescription()

Specified by:
createChangeDescription in interface ChangeFactory
Returns:
a new object of class 'Description'.

createEObjectToChangesMapEntry

public Map.Entry createEObjectToChangesMapEntry()


createFeatureChange

public FeatureChange createFeatureChange()

Specified by:
createFeatureChange in interface ChangeFactory
Returns:
a new object of class 'Feature Change'.

createFeatureChange

public FeatureChange createFeatureChange(EStructuralFeature feature,
                                         Object oldValue,
                                         boolean oldIsSet)
Specified by:
createFeatureChange in interface ChangeFactory

createListChange

public ListChange createListChange()

Specified by:
createListChange in interface ChangeFactory
Returns:
a new object of class 'List Change'.

createResourceChange

public ResourceChange createResourceChange()

Specified by:
createResourceChange in interface ChangeFactory
Returns:
a new object of class 'Resource Change'.

createResourceChange

public ResourceChange createResourceChange(Resource resource,
                                           EList oldValue)
Specified by:
createResourceChange in interface ChangeFactory

createFeatureMapEntry

public FeatureMapEntry createFeatureMapEntry()

Specified by:
createFeatureMapEntry in interface ChangeFactory
Returns:
a new object of class 'Feature Map Entry'.

createChangeKindFromString

public ChangeKind createChangeKindFromString(EDataType eDataType,
                                             String initialValue)


convertChangeKindToString

public String convertChangeKindToString(EDataType eDataType,
                                        Object instanceValue)


createFeatureMapEntry

public FeatureMapEntry createFeatureMapEntry(EStructuralFeature feature,
                                             Object value)
Specified by:
createFeatureMapEntry in interface ChangeFactory

getChangePackage

public ChangePackage getChangePackage()

Specified by:
getChangePackage in interface ChangeFactory
Returns:
the package supported by this factory.

getPackage

public static ChangePackage getPackage()
Deprecated.  


createEObjectToChangesMapEntry

public Map.Entry createEObjectToChangesMapEntry(EObject eObject)
Specified by:
createEObjectToChangesMapEntry in interface ChangeFactory

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