|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Root'.
The following features are supported:
MappingPackage.getMappingRoot()
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. |
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. |
Collection |
getAllMappings(Collection collection)
This returns the getMappings(Object)
for each object of the collection. |
String |
getCommandStack()
Returns the value of the 'Command Stack' attribute |
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 Mapping#getMappedObjects() . |
MappedObjectState |
getMappedObjectState(Object object)
This returns the mapping state, if any, of the given object. |
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. |
MappingRoot |
getTypeMappingRoot()
This returns the root of the type mapping model. |
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. |
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()
Returns the value of the 'Output Read Only' attribute |
boolean |
isTopObject(Object object)
This returns whether the given object is a top domain object. |
boolean |
isTopToBottom()
Returns the value of the 'Top To Bottom' attribute |
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 value)
Sets the value of the ' Command Stack ' attribute |
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 value)
Sets the value of the ' Output Read Only ' attribute |
void |
setTopToBottom(boolean value)
Sets the value of the ' Top To Bottom ' attribute |
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, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public boolean isOutputReadOnly()
If the meaning of the 'Output Read Only' attribute isn't clear, there really should be more of a description here...
setOutputReadOnly(boolean)
,
MappingPackage.getMappingRoot_OutputReadOnly()
public void setOutputReadOnly(boolean value)
Output Read Only
' attribute.
value
- the new value of the 'Output Read Only' attribute.isOutputReadOnly()
public boolean isTopToBottom()
If the meaning of the 'Top To Bottom' attribute isn't clear, there really should be more of a description here...
setTopToBottom(boolean)
,
MappingPackage.getMappingRoot_TopToBottom()
public void setTopToBottom(boolean value)
Top To Bottom
' attribute.
value
- the new value of the 'Top To Bottom' attribute.isTopToBottom()
public String getCommandStack()
If the meaning of the 'Command Stack' attribute isn't clear, there really should be more of a description here...
setCommandStack(String)
,
MappingPackage.getMappingRoot_CommandStack()
public void setCommandStack(String value)
Command Stack
' attribute.
value
- the new value of the 'Command Stack' attribute.getCommandStack()
public MappingDomain getDomain()
public void setDomain(MappingDomain domain)
public void refreshMappedObjectStates(Mapping subtree)
public Collection getMappings(Object object)
public Collection getAllMappings(Collection collection)
getMappings(Object)
for each object of the collection.
public Collection getExactMappings(Collection collection)
getAllMappings(java.util.Collection)
such that have each mapping has Mapping#getMappedObjects()
.
public Mapping getParentMapping(Collection collection)
public boolean canCreateMapping(Collection inputs, Collection outputs, Mapping mapping)
public boolean canRemoveMapping(Mapping mapping)
public Mapping createMapping(Collection inputs, Collection outputs)
public void resetDirty()
public boolean isDirty()
public boolean isOutputDirty()
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 void register(Mapping mapping)
public void deregister(Mapping mapping)
public MappedObjectState getMappedObjectState(Object object)
public MappingRoot getTypeMappingRoot()
public void dispose()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |