|
||||||||||
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 EObjectImpl
public MappingHelper getHelper()
getHelper
in interface Mapping
org.eclipse.emf.mapping.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
org.eclipse.emf.mapping.Mapping
value
- the new value of the 'Helper' containment reference.Mapping.getHelper()
public EList getNested()
getNested
in interface Mapping
org.eclipse.emf.mapping.Mapping
MappingPackage.getMapping_Nested()
,
Mapping.getNestedIn()
public Mapping getNestedIn()
getNestedIn
in interface Mapping
org.eclipse.emf.mapping.Mapping
Mapping.setNestedIn(Mapping)
,
MappingPackage.getMapping_NestedIn()
,
Mapping.getNested()
public void setNestedIn(Mapping newNestedIn)
setNestedIn
in interface Mapping
org.eclipse.emf.mapping.Mapping
value
- the new value of the 'Nested In' container reference.Mapping.getNestedIn()
public EList getInputs()
getInputs
in interface Mapping
org.eclipse.emf.mapping.Mapping
MappingPackage.getMapping_Inputs()
public EList getOutputs()
getOutputs
in interface Mapping
org.eclipse.emf.mapping.Mapping
MappingPackage.getMapping_Outputs()
public Mapping getTypeMapping()
getTypeMapping
in interface Mapping
org.eclipse.emf.mapping.Mapping
Mapping.setTypeMapping(Mapping)
,
MappingPackage.getMapping_TypeMapping()
public Mapping basicGetTypeMapping()
public void setTypeMapping(Mapping newTypeMapping)
setTypeMapping
in interface Mapping
org.eclipse.emf.mapping.Mapping
value
- 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 EObjectImpl
org.eclipse.emf.ecore.InternalEObject
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
eInverseRemove
in class EObjectImpl
org.eclipse.emf.ecore.InternalEObject
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
eBasicRemoveFromContainer
in class EObjectImpl
org.eclipse.emf.ecore.InternalEObject
public java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in interface EObject
eGet
in class EObjectImpl
org.eclipse.emf.ecore.EObject
feature
- 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 EObject
eSet
in class EObjectImpl
org.eclipse.emf.ecore.EObject
feature
- 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 EObject
eUnset
in class EObjectImpl
org.eclipse.emf.ecore.EObject
feature
- 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 EObject
eIsSet
in class EObjectImpl
org.eclipse.emf.ecore.EObject
feature
- 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()
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
isReverse
in interface Mapping
public EList getSenders()
Mapping
Mapping.getInputs()
if Mapping.isReverse()
returns false.
Otherwise it returns the same as Mapping.getOutputs()
.getSenders
in interface Mapping
public EList getReceivers()
Mapping
Mapping.getOutputs()
if Mapping.isReverse()
returns false.
Otherwise it returns the same as Mapping.getInputs()
.getReceivers
in interface Mapping
public EList getTops()
Mapping
Mapping.getInputs()
or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.getTops
in interface Mapping
public EList getBottoms()
Mapping
Mapping.getInputs()
or Mapping.getOutputs()
depending on the mapping root's isTopToBottom.getBottoms
in interface Mapping
public TreeIterator treeIterator()
Mapping
treeIterator
in interface Mapping
public TreeIterator treeIterator(boolean includeRoot)
Mapping
treeIterator
in interface Mapping
public 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 |