public class MappingImpl extends EObjectImpl implements Mapping
The following features are implemented:
Modifier and Type | Class and Description |
---|---|
static class |
MappingImpl.MappingTreeIterator
This implements a tree iterator that will iterate over a mapping, all it's nested mappings, all their nested mappings, and so on.
|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected MappingHelper |
helper
The cached value of the '
Helper ' containment reference |
protected EList<EObject> |
inputs
The cached value of the '
Inputs ' reference list |
protected EList<Mapping> |
nested
The cached value of the '
Nested ' containment reference list |
protected EList<EObject> |
outputs
The cached value of the '
Outputs ' reference list |
protected Mapping |
typeMapping
The cached value of the '
Type Mapping ' reference |
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
MappingImpl() |
Modifier and Type | Method and Description |
---|---|
Mapping |
basicGetTypeMapping() |
NotificationChain |
basicSetHelper(MappingHelper newHelper,
NotificationChain msgs) |
NotificationChain |
basicSetNestedIn(Mapping newNestedIn,
NotificationChain msgs) |
NotificationChain |
eBasicRemoveFromContainerFeature(NotificationChain msgs) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
EList<EObject> |
getBottoms()
This returns the same as either
Mapping.getInputs() or Mapping.getOutputs()
depending on the mapping root's isTopToBottom. |
MappingHelper |
getEffectiveHelper()
This returns the mapping helper for this mapping, if it has one.
|
MappingHelper |
getHelper() |
EList<EObject> |
getInputs() |
java.util.Collection<? extends EObject> |
getMappedObjects()
This returns a set containing the results of
Mapping.getInputs() and Mapping.getOutputs() . |
MappingRoot |
getMappingRoot()
This returns either the containing mapping root or the object itself, if it is a mapping root.
|
EList<Mapping> |
getNested() |
Mapping |
getNestedIn() |
EList<EObject> |
getOutputs() |
EList<EObject> |
getReceivers()
This returns the same as
Mapping.getOutputs() if Mapping.isReverse() returns false. |
EList<EObject> |
getSenders()
This returns the same as
Mapping.getInputs() if Mapping.isReverse() returns false. |
EList<EObject> |
getTops()
This returns the same as either
Mapping.getInputs() or Mapping.getOutputs()
depending on the mapping root's isTopToBottom. |
Mapping |
getTypeMapping() |
boolean |
isReverse()
This method is delegated to the containing mapping if one exists, or returns false otherwise.
|
void |
setHelper(MappingHelper newHelper) |
void |
setNestedIn(Mapping newNestedIn) |
void |
setTypeMapping(Mapping newTypeMapping) |
java.lang.String |
toString() |
TreeIterator<Mapping> |
treeIterator()
This returns a tree iterator that iterates over this mapping,
all it's nested mappings,
and their nested mappings,
and so on.
|
TreeIterator<Mapping> |
treeIterator(boolean includeRoot)
This returns a tree iterator that iterates over this mapping (but only if includeRoot is true),
all it's nested mappings,
and their nested mappings,
and so on.
|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
eNotificationRequired
protected MappingHelper helper
Helper
' containment reference.
getHelper()
protected EList<Mapping> nested
Nested
' containment reference list.
getNested()
protected EList<EObject> inputs
Inputs
' reference list.
getInputs()
protected EList<EObject> outputs
Outputs
' reference list.
getOutputs()
protected Mapping typeMapping
Type Mapping
' reference.
getTypeMapping()
protected EClass eStaticClass()
eStaticClass
in class EObjectImpl
public MappingHelper getHelper()
getHelper
in interface Mapping
Mapping.setHelper(MappingHelper)
,
MappingPackage.getMapping_Helper()
,
MappingHelper.getMapper()
public NotificationChain basicSetHelper(MappingHelper newHelper, NotificationChain msgs)
public void setHelper(MappingHelper newHelper)
setHelper
in interface Mapping
newHelper
- the new value of the 'Helper' containment reference.Mapping.getHelper()
public EList<Mapping> getNested()
getNested
in interface Mapping
MappingPackage.getMapping_Nested()
,
Mapping.getNestedIn()
public Mapping getNestedIn()
getNestedIn
in interface Mapping
Mapping.setNestedIn(Mapping)
,
MappingPackage.getMapping_NestedIn()
,
Mapping.getNested()
public NotificationChain basicSetNestedIn(Mapping newNestedIn, NotificationChain msgs)
public void setNestedIn(Mapping newNestedIn)
setNestedIn
in interface Mapping
newNestedIn
- the new value of the 'Nested In' container reference.Mapping.getNestedIn()
public EList<EObject> getInputs()
getInputs
in interface Mapping
MappingPackage.getMapping_Inputs()
public EList<EObject> getOutputs()
getOutputs
in interface Mapping
MappingPackage.getMapping_Outputs()
public Mapping getTypeMapping()
getTypeMapping
in interface Mapping
Mapping.setTypeMapping(Mapping)
,
MappingPackage.getMapping_TypeMapping()
public Mapping basicGetTypeMapping()
public void setTypeMapping(Mapping newTypeMapping)
setTypeMapping
in interface Mapping
newTypeMapping
- the new value of the 'Type Mapping' reference.Mapping.getTypeMapping()
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseAdd
in class BasicEObjectImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class BasicEObjectImpl
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
eBasicRemoveFromContainerFeature
in class BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class BasicEObjectImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class BasicEObjectImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class BasicEObjectImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class BasicEObjectImpl
EObject.eIsSet(EStructuralFeature)
public java.util.Collection<? extends EObject> getMappedObjects()
Mapping
Mapping.getInputs()
and Mapping.getOutputs()
.getMappedObjects
in interface Mapping
public MappingRoot getMappingRoot()
Mapping
getMappingRoot
in interface Mapping
public MappingHelper getEffectiveHelper()
Mapping
getEffectiveHelper
in interface Mapping
public boolean isReverse()
Mapping
public EList<EObject> getSenders()
Mapping
Mapping.getInputs()
if Mapping.isReverse()
returns false.
Otherwise it returns the same as Mapping.getOutputs()
.getSenders
in interface Mapping
public EList<EObject> getReceivers()
Mapping
Mapping.getOutputs()
if Mapping.isReverse()
returns false.
Otherwise it returns the same as Mapping.getInputs()
.getReceivers
in interface Mapping
public EList<EObject> getTops()
Mapping
Mapping.getInputs()
or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.public EList<EObject> getBottoms()
Mapping
Mapping.getInputs()
or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.getBottoms
in interface Mapping
public TreeIterator<Mapping> treeIterator()
Mapping
treeIterator
in interface Mapping
public TreeIterator<Mapping> treeIterator(boolean includeRoot)
Mapping
treeIterator
in interface Mapping
public java.lang.String toString()
toString
in class BasicEObjectImpl