|
|||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.mapping.impl.MappingImpl
An implementation of the model object 'Mapping'.
The following features are implemented:
| Inner Class Summary | |
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. |
| Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
EObjectImpl.EPropertiesHolder, EObjectImpl.EPropertiesHolderImpl |
| Field Summary | |
protected MappingHelper |
helper
The cached value of the ' Helper' containment reference. |
protected EList |
inputs
The cached value of the ' Inputs' reference list. |
protected EList |
nested
The cached value of the ' Nested' containment reference list. |
protected EList |
outputs
The cached value of the ' Outputs' reference list. |
protected Mapping |
typeMapping
The cached value of the ' Type Mapping' reference. |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties |
| Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
protected |
MappingImpl()
|
| Method Summary | |
Mapping |
basicGetTypeMapping()
|
NotificationChain |
basicSetHelper(MappingHelper newHelper,
NotificationChain msgs)
|
NotificationChain |
eBasicRemoveFromContainer(NotificationChain msgs)
|
java.lang.Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
EList |
getBottoms()
This returns the same as either getInputs() or 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 |
getInputs()
|
java.util.Collection |
getMappedObjects()
This returns a set containing the results of getInputs() and getOutputs(). |
MappingRoot |
getMappingRoot()
This returns either the containing mapping root or the object itself, if it is a mapping root. |
EList |
getNested()
|
Mapping |
getNestedIn()
|
EList |
getOutputs()
|
EList |
getReceivers()
This returns the same as getOutputs() if isReverse() returns false. |
EList |
getSenders()
This returns the same as getInputs() if isReverse() returns false. |
EList |
getTops()
This returns the same as either getInputs() or 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 |
treeIterator()
This returns a tree iterator that iterates over this mapping, all it's nested mappings, and their nested mappings, and so on. |
TreeIterator |
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. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver |
| 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, 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 |
protected MappingHelper helper
Helper' containment reference.
getHelper()protected EList nested
Nested' containment reference list.
getNested()protected EList inputs
Inputs' reference list.
getInputs()protected EList outputs
Outputs' reference list.
getOutputs()protected Mapping typeMapping
Type Mapping' reference.
getTypeMapping()| Constructor Detail |
protected MappingImpl()
| Method Detail |
protected EClass eStaticClass()
eStaticClass in class EObjectImplpublic MappingHelper getHelper()
getHelper in interface Mappingorg.eclipse.emf.mapping.MappingMapping.setHelper(MappingHelper),
MappingPackage.getMapping_Helper(),
MappingHelper.getMapper()
public NotificationChain basicSetHelper(MappingHelper newHelper,
NotificationChain msgs)
public void setHelper(MappingHelper newHelper)
setHelper in interface Mappingorg.eclipse.emf.mapping.Mappingvalue - the new value of the 'Helper' containment reference.Mapping.getHelper()public EList getNested()
getNested in interface Mappingorg.eclipse.emf.mapping.MappingMappingPackage.getMapping_Nested(),
Mapping.getNestedIn()public Mapping getNestedIn()
getNestedIn in interface Mappingorg.eclipse.emf.mapping.MappingMapping.setNestedIn(Mapping),
MappingPackage.getMapping_NestedIn(),
Mapping.getNested()public void setNestedIn(Mapping newNestedIn)
setNestedIn in interface Mappingorg.eclipse.emf.mapping.Mappingvalue - the new value of the 'Nested In' container reference.Mapping.getNestedIn()public EList getInputs()
getInputs in interface Mappingorg.eclipse.emf.mapping.MappingMappingPackage.getMapping_Inputs()public EList getOutputs()
getOutputs in interface Mappingorg.eclipse.emf.mapping.MappingMappingPackage.getMapping_Outputs()public Mapping getTypeMapping()
getTypeMapping in interface Mappingorg.eclipse.emf.mapping.MappingMapping.setTypeMapping(Mapping),
MappingPackage.getMapping_TypeMapping()public Mapping basicGetTypeMapping()
public void setTypeMapping(Mapping newTypeMapping)
setTypeMapping in interface Mappingorg.eclipse.emf.mapping.Mappingvalue - the new value of the 'Type Mapping' reference.Mapping.getTypeMapping()
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
eInverseAdd in class EObjectImplorg.eclipse.emf.ecore.InternalEObject
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
eInverseRemove in class EObjectImplorg.eclipse.emf.ecore.InternalEObjectpublic NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
eBasicRemoveFromContainer in class EObjectImplorg.eclipse.emf.ecore.InternalEObject
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
eGet in interface EObjecteGet in class EObjectImplorg.eclipse.emf.ecore.EObjectfeature - the feature of the value to fetch.resolve - whether to resolve.java.lang.IllegalArgumentException - if the feature is not one the meta class's
features.InternalEList.basicIterator(),
InternalEList.basicList(),
EcoreUtil.resolve(EObject, ResourceSet),
EObject.eSet(EStructuralFeature, Object),
EObject.eUnset(EStructuralFeature),
EObject.eIsSet(EStructuralFeature),
EObject.eGet(EStructuralFeature)
public void eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
eSet in interface EObjecteSet in class EObjectImplorg.eclipse.emf.ecore.EObjectfeature - the feature of the value to set.java.lang.IllegalArgumentException - if the feature is not one the meta class's
features,
or it isn't changeable.java.lang.ClassCastException - if there is a type conflict.ArrayStoreException - if there is a type conflect.EObject.eUnset(EStructuralFeature),
EObject.eIsSet(EStructuralFeature),
EObject.eGet(EStructuralFeature, boolean)public void eUnset(EStructuralFeature eFeature)
eUnset in interface EObjecteUnset in class EObjectImplorg.eclipse.emf.ecore.EObjectfeature - the feature in question.java.lang.IllegalArgumentException - if the feature is not one the meta class's
features,
or it isn't changeable.EObject.eIsSet(EStructuralFeature),
EObject.eSet(EStructuralFeature, Object),
EObject.eGet(EStructuralFeature, boolean)public boolean eIsSet(EStructuralFeature eFeature)
eIsSet in interface EObjecteIsSet in class EObjectImplorg.eclipse.emf.ecore.EObjectfeature - the feature in question.java.lang.IllegalArgumentException - if the feature is not one the meta class's
features.EObject.eSet(EStructuralFeature, Object),
EObject.eUnset(EStructuralFeature),
EObject.eGet(EStructuralFeature, boolean)public java.util.Collection getMappedObjects()
MappingMapping.getInputs() and Mapping.getOutputs().getMappedObjects in interface Mappingpublic MappingRoot getMappingRoot()
MappinggetMappingRoot in interface Mappingpublic MappingHelper getEffectiveHelper()
MappinggetEffectiveHelper in interface Mappingpublic boolean isReverse()
MappingisReverse in interface Mappingpublic EList getSenders()
MappingMapping.getInputs() if Mapping.isReverse() returns false.
Otherwise it returns the same as Mapping.getOutputs().getSenders in interface Mappingpublic EList getReceivers()
MappingMapping.getOutputs() if Mapping.isReverse() returns false.
Otherwise it returns the same as Mapping.getInputs().getReceivers in interface Mappingpublic EList getTops()
MappingMapping.getInputs() or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.getTops in interface Mappingpublic EList getBottoms()
MappingMapping.getInputs() or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.getBottoms in interface Mappingpublic TreeIterator treeIterator()
MappingtreeIterator in interface Mappingpublic TreeIterator treeIterator(boolean includeRoot)
MappingtreeIterator in interface Mappingpublic java.lang.String toString()
toString in class EObjectImpl
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||