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

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.FeatureMapEntryImpl
All Implemented Interfaces:
EObject, FeatureMap.Entry, FeatureMapEntry, InternalEObject, Notifier

public class FeatureMapEntryImpl
extends EObjectImpl
implements FeatureMapEntry, FeatureMap.Entry

An implementation of the model object 'Feature Map Entry'.


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 String DATA_VALUE_EDEFAULT
          The default value of the 'Data Value' attribute
protected static int EPROXY_FEATURECHANGE
          The bit of EObjectImpl.eFlags that is used to represent if feature is a proxy.
protected  EStructuralFeature feature
           
protected static String FEATURE_NAME_EDEFAULT
          The default value of the 'Feature Name' attribute
protected  String featureName
           
protected  Object value
           
protected static Object VALUE_EDEFAULT
          The default value of the 'Value' attribute
protected  String valueString
           
 
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 FeatureMapEntryImpl()
           
protected FeatureMapEntryImpl(EStructuralFeature feature, Object value)
           
 
Method Summary
 EStructuralFeature basicGetFeature()
           
 EObject basicGetReferenceValue()
           
protected  ListChange createListChange(EList changesList, ChangeKind kind, int index)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 String getDataValue()
           
 EStructuralFeature getEStructuralFeature()
          Returns the feature.
 EStructuralFeature getFeature()
           
 String getFeatureName()
           
protected  EObject getGreatGrandParent()
           
 EObject getReferenceValue()
           
 Object getValue()
           
 boolean isSetFeature()
           
 boolean isSetFeatureName()
           
 void setDataValue(String newDataValue)
           
 void setFeature(EStructuralFeature newFeature)
           
 void setFeatureName(String newFeatureName)
           
 void setReferenceValue(EObject newReferenceValue)
           
protected  void setValue(Object value)
           
 void unsetFeature()
           
 void unsetFeatureName()
           
 
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, eInverseAdd, eInverseRemove, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment, 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.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

EPROXY_FEATURECHANGE

protected static final int EPROXY_FEATURECHANGE
The bit of EObjectImpl.eFlags that is used to represent if feature is a proxy.

See Also:
Constant Field Values

FEATURE_NAME_EDEFAULT

protected static final String FEATURE_NAME_EDEFAULT
The default value of the 'Feature Name' attribute.

See Also:
getFeatureName()

DATA_VALUE_EDEFAULT

protected static final String DATA_VALUE_EDEFAULT
The default value of the 'Data Value' attribute.

See Also:
getDataValue()

VALUE_EDEFAULT

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

See Also:
getValue()

feature

protected EStructuralFeature feature

featureName

protected String featureName

value

protected Object value

valueString

protected String valueString
Constructor Detail

FeatureMapEntryImpl

protected FeatureMapEntryImpl()


FeatureMapEntryImpl

protected FeatureMapEntryImpl(EStructuralFeature feature,
                              Object value)
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EObjectImpl

getFeatureName

public String getFeatureName()

Specified by:
getFeatureName in interface FeatureMapEntry
Returns:
the value of the 'Feature Name' attribute.
See Also:
FeatureMapEntry.isSetFeatureName(), FeatureMapEntry.unsetFeatureName(), FeatureMapEntry.setFeatureName(String), ChangePackage.getFeatureMapEntry_FeatureName()

setFeatureName

public void setFeatureName(String newFeatureName)

Specified by:
setFeatureName in interface FeatureMapEntry
Parameters:
newFeatureName - the new value of the 'Feature Name' attribute.
See Also:
FeatureMapEntry.isSetFeatureName(), FeatureMapEntry.unsetFeatureName(), FeatureMapEntry.getFeatureName()

unsetFeatureName

public void unsetFeatureName()

Specified by:
unsetFeatureName in interface FeatureMapEntry
See Also:
FeatureMapEntry.isSetFeatureName(), FeatureMapEntry.getFeatureName(), FeatureMapEntry.setFeatureName(String)

isSetFeatureName

public boolean isSetFeatureName()

Specified by:
isSetFeatureName in interface FeatureMapEntry
Returns:
whether the value of the 'Feature Name' attribute is set.
See Also:
FeatureMapEntry.unsetFeatureName(), FeatureMapEntry.getFeatureName(), FeatureMapEntry.setFeatureName(String)

getGreatGrandParent

protected EObject getGreatGrandParent()

getDataValue

public String getDataValue()

Specified by:
getDataValue in interface FeatureMapEntry
Returns:
the value of the 'Data Value' attribute.
See Also:
FeatureMapEntry.setDataValue(String), ChangePackage.getFeatureMapEntry_DataValue()

setDataValue

public void setDataValue(String newDataValue)

Specified by:
setDataValue in interface FeatureMapEntry
Parameters:
newDataValue - the new value of the 'Data Value' attribute.
See Also:
FeatureMapEntry.getDataValue()

getEStructuralFeature

public EStructuralFeature getEStructuralFeature()
Description copied from interface: FeatureMap.Entry
Returns the feature.

Specified by:
getEStructuralFeature in interface FeatureMap.Entry
Returns:
the feature.

getFeature

public EStructuralFeature getFeature()

Specified by:
getFeature in interface FeatureMapEntry
Returns:
the value of the 'Feature' reference.
See Also:
FeatureMapEntry.isSetFeature(), FeatureMapEntry.unsetFeature(), FeatureMapEntry.setFeature(EStructuralFeature), ChangePackage.getFeatureMapEntry_Feature()

basicGetFeature

public EStructuralFeature basicGetFeature()


setFeature

public void setFeature(EStructuralFeature newFeature)

Specified by:
setFeature in interface FeatureMapEntry
Parameters:
newFeature - the new value of the 'Feature' reference.
See Also:
FeatureMapEntry.isSetFeature(), FeatureMapEntry.unsetFeature(), FeatureMapEntry.getFeature()

unsetFeature

public void unsetFeature()

Specified by:
unsetFeature in interface FeatureMapEntry
See Also:
FeatureMapEntry.isSetFeature(), FeatureMapEntry.getFeature(), FeatureMapEntry.setFeature(EStructuralFeature)

isSetFeature

public boolean isSetFeature()

Specified by:
isSetFeature in interface FeatureMapEntry
Returns:
whether the value of the 'Feature' reference is set.
See Also:
FeatureMapEntry.unsetFeature(), FeatureMapEntry.getFeature(), FeatureMapEntry.setFeature(EStructuralFeature)

getReferenceValue

public EObject getReferenceValue()

Specified by:
getReferenceValue in interface FeatureMapEntry
Returns:
the value of the 'Reference Value' reference.
See Also:
FeatureMapEntry.setReferenceValue(EObject), ChangePackage.getFeatureMapEntry_ReferenceValue()

basicGetReferenceValue

public EObject basicGetReferenceValue()


setReferenceValue

public void setReferenceValue(EObject newReferenceValue)

Specified by:
setReferenceValue in interface FeatureMapEntry
Parameters:
newReferenceValue - the new value of the 'Reference Value' reference.
See Also:
FeatureMapEntry.getReferenceValue()

getValue

public Object getValue()

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

setValue

protected void setValue(Object value)

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

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

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

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

eUnset

public void eUnset(EStructuralFeature eFeature)

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

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

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

createListChange

protected ListChange createListChange(EList changesList,
                                      ChangeKind kind,
                                      int index)

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