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

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.change.impl.ResourceChangeImpl
All Implemented Interfaces:
EObject, InternalEObject, Notifier, ResourceChange

public class ResourceChangeImpl
extends EObjectImpl
implements ResourceChange

An implementation of the model object 'Resource Change'.

The following features are implemented:


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  EList listChanges
          The cached value of the 'List Changes' containment reference list
protected  Resource resource
          The cached value of the 'Resource' attribute
protected static Resource RESOURCE_EDEFAULT
          The default value of the 'Resource' attribute
protected static String RESOURCE_URI_EDEFAULT
          The default value of the 'Resource URI' attribute
protected  String resourceURI
          The cached value of the 'Resource URI' attribute
protected static EList VALUE_EDEFAULT
          The default value of the 'Value' attribute
protected  EList valueField
           
 
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.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ResourceChangeImpl()
           
protected ResourceChangeImpl(Resource resource, EList value)
           
 
Method Summary
 void apply()
           
protected  void apply(EList toList)
           
 void applyAndReverse()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EList getListChanges()
           
 Resource getResource()
           
 String getResourceURI()
           
 EList getValue()
           
 void setResource(Resource newResource)
          Sets the value of the 'Resource' attribute
 void setResourceGen(Resource newResource)
           
 void setResourceURI(String newResourceURI)
           
protected  void setValue(EList value)
           
 String toString()
           
 
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
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, 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, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
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.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

RESOURCE_URI_EDEFAULT

protected static final String RESOURCE_URI_EDEFAULT
The default value of the 'Resource URI' attribute.

See Also:
getResourceURI()

resourceURI

protected String resourceURI
The cached value of the 'Resource URI' attribute.

See Also:
getResourceURI()

RESOURCE_EDEFAULT

protected static final Resource RESOURCE_EDEFAULT
The default value of the 'Resource' attribute.

See Also:
getResource()

resource

protected Resource resource
The cached value of the 'Resource' attribute.

See Also:
getResource()

VALUE_EDEFAULT

protected static final EList VALUE_EDEFAULT
The default value of the 'Value' attribute.

See Also:
getValue()

listChanges

protected EList listChanges
The cached value of the 'List Changes' containment reference list.

See Also:
getListChanges()

valueField

protected EList valueField
Constructor Detail

ResourceChangeImpl

protected ResourceChangeImpl()


ResourceChangeImpl

protected ResourceChangeImpl(Resource resource,
                             EList value)
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EObjectImpl

getResourceURI

public String getResourceURI()

Specified by:
getResourceURI in interface ResourceChange
Returns:
the value of the 'Resource URI' attribute.
See Also:
ResourceChange.setResourceURI(String), ChangePackage.getResourceChange_ResourceURI()

setResourceURI

public void setResourceURI(String newResourceURI)

Specified by:
setResourceURI in interface ResourceChange
Parameters:
newResourceURI - the new value of the 'Resource URI' attribute.
See Also:
ResourceChange.getResourceURI()

getResource

public Resource getResource()

Specified by:
getResource in interface ResourceChange
Returns:
the value of the 'Resource' attribute.
See Also:
ResourceChange.setResource(Resource), ChangePackage.getResourceChange_Resource()

setResourceGen

public void setResourceGen(Resource newResource)


setResource

public void setResource(Resource newResource)
Description copied from interface: ResourceChange
Sets the value of the 'Resource' attribute.

Specified by:
setResource in interface ResourceChange
Parameters:
newResource - the new value of the 'Resource' attribute.
See Also:
ResourceChange.getResource()

getValue

public EList getValue()

Specified by:
getValue in interface ResourceChange
Returns:
the value of the 'Value' attribute.
See Also:
ChangePackage.getResourceChange_Value()

setValue

protected void setValue(EList value)

getListChanges

public EList getListChanges()

Specified by:
getListChanges in interface ResourceChange
Returns:
the value of the 'List Changes' containment reference list.
See Also:
ChangePackage.getResourceChange_ListChanges()

apply

public void apply()

Specified by:
apply in interface ResourceChange

applyAndReverse

public void applyAndReverse()

Specified by:
applyAndReverse in interface ResourceChange

eInverseRemove

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

Overrides:
eInverseRemove in class BasicEObjectImpl

apply

protected void apply(EList toList)

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class BasicEObjectImpl

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