| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.mapping.impl.MappingImpl
org.eclipse.emf.mapping.impl.MappingRootImpl
An implementation of the model object 'Root'.
The following features are implemented:
Nested Class Summary | |
protected class | MappingRootImpl.MappedObjectStateAdapter
This is a simple implementation of the basic information that needs to be maintained for any mapped object. |
protected class | MappingRootImpl.MappedObjectStateAdapterFactory
This is the factory that creates adapters for the objects being mapped. |
Nested classes inherited from class org.eclipse.emf.mapping.impl.MappingImpl |
MappingImpl.MappingTreeIterator |
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 | COMMAND_STACK_EDEFAULT
The default value of the 'Command Stack' attribute |
protected String | commandStack
The cached value of the 'Command Stack' attribute |
protected MappingDomain | domain
This keeps track of the mapping domain that uses this mapping root. |
protected AdapterImpl | mappedObjectListener
This allows this listen for changes to inputs or outputs. |
protected AdapterFactory | mappedObjectStateAdapterFactory
This keeps track of the factory for creating the MappedObjectState. |
protected static boolean | OUTPUT_READ_ONLY_EDEFAULT
The default value of the 'Output Read Only' attribute |
protected boolean | outputDirty
This keeps track of whether the output has been modified. |
protected boolean | outputReadOnly
The cached value of the 'Output Read Only' attribute |
protected static boolean | TOP_TO_BOTTOM_EDEFAULT
The default value of the 'Top To Bottom' attribute |
protected boolean | topToBottom
The cached value of the 'Top To Bottom' attribute |
Fields inherited from class org.eclipse.emf.mapping.impl.MappingImpl |
helper, inputs, nested, outputs, typeMapping |
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 | MappingRootImpl()
|
Method Summary | |
boolean | canCreateMapping(Collection inputs,
Collection outputs,
Mapping mapping)
If mapping is null, this checks if a mapping can be created with the given inputs and outputs. |
boolean | canRemoveMapping(Mapping mapping)
This checks if the given mapping can be removed. |
protected Adapter | createMappedObjectStateAdapter(Notifier target)
By default, this creates a new instance of MappingRootImpl.MappedObjectStateAdapter. |
protected AdapterFactory | createMappedObjectStateAdapterFactory()
By default, this creates an adapter factory that delegates createAdapter to createMappedObjectStateAdapter. |
protected Mapping | createMapping()
|
Mapping | createMapping(Collection inputs,
Collection outputs)
This creates a new, appropriately-parented, mapping object with the given collections of input and output objects. |
void | deregister(Mapping mapping)
This removes cached information about this mapping. |
void | dispose()
This disposes all the adapters used to record the mapped object state. |
NotificationChain | eBasicRemoveFromContainer(NotificationChain msgs)
|
Object | eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain | eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
NotificationChain | eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
boolean | eIsSet(EStructuralFeature eFeature)
|
void | eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass | eStaticClass()
|
void | eUnset(EStructuralFeature eFeature)
|
Collection | getAllMappings(Collection collection)
This returns the |
String | getCommandStack()
|
MappingDomain | getDomain()
This returns the associated mapping domain. |
Collection | getExactMappings(Collection collection)
This returns the subset of mappings returned by getAllMappings(java.util.Collection) such that have each mapping has |
MappedObjectState | getMappedObjectState(Object object)
This uses the mappedObjectStateAdapterFactory to get an adapter that implements this interface. |
Collection | getMappings(Object object)
This returns a collection of the mappings that refer to the given object. |
Mapping | getParentMapping(Collection collection)
This returns the mapping in the tree that would be the parent of a mapping that has the given collection as its mapped objects. |
protected Collection | getTypeClassifiers(Collection collection)
|
MappingRoot | getTypeMappingRoot()
This returns the root of the type mapping model. |
protected Collection | getTypeMappings(Collection inputTypes,
Collection outputTypes)
|
protected boolean | hasCompatibleMetaObjects(Collection inputs,
Collection outputs)
|
protected boolean | hasCompatibleTypes(Collection inputs,
Collection outputs)
|
protected boolean | hasMappedChildren(Mapping mapping)
|
protected boolean | hasMappedParents(Collection inputs,
Collection outputs)
|
protected boolean | hasTypeMappings(Collection types)
|
protected void | initializeMappedObjectStates()
|
protected void | initializeNewMapping(Mapping newMapping,
Collection inputs,
Collection outputs)
|
boolean | isAttachedObject(Object object)
This returns whether the given object descends from one of the root's input or output objects. |
boolean | isBottomObject(Object object)
This returns whether the given object is a bottom domain object. |
boolean | isDirty()
This method returns true if the mapping tree needs to be saved. |
boolean | isInputObject(Object object)
This returns whether the given object is an input object in the domain. |
protected boolean | isMapped(Collection collection,
Mapping mapping)
|
boolean | isOutputDirty()
This method returns true if the mapping output needs to be saved. |
boolean | isOutputObject(Object object)
This returns whether the given object is an output object in the domain. |
boolean | isOutputReadOnly()
|
boolean | isTopObject(Object object)
This returns whether the given object is a top domain object. |
boolean | isTopToBottom()
|
protected void | printAdapters()
|
void | refreshMappedObjectStates(Mapping subtree)
This refreshes the mapped objects states of all mappings rooted at the specified mapping subtree. |
void | register(Mapping mapping)
This adds cached information about this mapping. |
void | resetDirty()
This method resets the mapping and output dirty flags. |
void | setCommandStack(String newCommandStack)
|
void | setDomain(MappingDomain domain)
This sets the domain of this mapping root. |
void | setOutputDirty(boolean dirty)
This method sets the output dirty flag. |
void | setOutputReadOnly(boolean newOutputReadOnly)
|
void | setTopToBottom(boolean newTopToBottom)
|
String | toString()
|
protected void | walk(EObject object)
|
Methods inherited from class org.eclipse.emf.mapping.impl.MappingImpl |
basicGetTypeMapping, basicSetHelper, getBottoms, getEffectiveHelper, getHelper, getInputs, getMappedObjects, getMappingRoot, getNested, getNestedIn, getOutputs, getReceivers, getSenders, getTops, getTypeMapping, isReverse, setHelper, setNestedIn, setTypeMapping, treeIterator, treeIterator |
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.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.mapping.Mapping |
getBottoms, getEffectiveHelper, getHelper, getInputs, getMappedObjects, getMappingRoot, getNested, getNestedIn, getOutputs, getReceivers, getSenders, getTops, getTypeMapping, isReverse, setHelper, setNestedIn, setTypeMapping, treeIterator, treeIterator |
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 |
protected static final boolean OUTPUT_READ_ONLY_EDEFAULT
protected boolean outputReadOnly
protected static final boolean TOP_TO_BOTTOM_EDEFAULT
protected boolean topToBottom
protected static final String COMMAND_STACK_EDEFAULT
protected String commandStack
protected MappingDomain domain
protected boolean outputDirty
protected AdapterImpl mappedObjectListener
protected AdapterFactory mappedObjectStateAdapterFactory
Constructor Detail |
protected MappingRootImpl()
Method Detail |
protected EClass eStaticClass()
public boolean isOutputReadOnly()
public void setOutputReadOnly(boolean newOutputReadOnly)
public boolean isTopToBottom()
public void setTopToBottom(boolean newTopToBottom)
public String getCommandStack()
public void setCommandStack(String newCommandStack)
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public boolean eIsSet(EStructuralFeature eFeature)
public String toString()
public MappingDomain getDomain()
public void setDomain(MappingDomain domain)
public void refreshMappedObjectStates(Mapping subtree)
protected void initializeMappedObjectStates()
public Mapping getParentMapping(Collection collection)
public boolean isDirty()
public boolean isOutputDirty()
public void register(Mapping mapping)
public void deregister(Mapping mapping)
public boolean canCreateMapping(Collection inputs, Collection outputs, Mapping mapping)
public boolean canRemoveMapping(Mapping mapping)
protected boolean hasMappedChildren(Mapping mapping)
protected boolean hasMappedParents(Collection inputs, Collection outputs)
protected boolean isMapped(Collection collection, Mapping mapping)
protected boolean hasCompatibleMetaObjects(Collection inputs, Collection outputs)
protected boolean hasCompatibleTypes(Collection inputs, Collection outputs)
protected Collection getTypeMappings(Collection inputTypes, Collection outputTypes)
protected boolean hasTypeMappings(Collection types)
protected Collection getTypeClassifiers(Collection collection)
public Mapping createMapping(Collection inputs, Collection outputs)
protected Mapping createMapping()
protected void initializeNewMapping(Mapping newMapping, Collection inputs, Collection outputs)
public void resetDirty()
public void setOutputDirty(boolean dirty)
public boolean isInputObject(Object object)
public boolean isOutputObject(Object object)
public boolean isTopObject(Object object)
public boolean isBottomObject(Object object)
public boolean isAttachedObject(Object object)
public Collection getMappings(Object object)
public Collection getAllMappings(Collection collection)
public Collection getExactMappings(Collection collection)
public MappedObjectState getMappedObjectState(Object object)
public MappingRoot getTypeMappingRoot()
protected AdapterFactory createMappedObjectStateAdapterFactory()
protected Adapter createMappedObjectStateAdapter(Notifier target)
public void dispose()
protected void printAdapters()
protected void walk(EObject object)
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |