|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingRoot
A representation of the model object 'Root'.
The following features are supported:
MappingPackage.getMappingRoot()
Method Summary | |
---|---|
boolean |
canCreateMapping(java.util.Collection<?> inputs,
java.util.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(java.util.Collection<?> inputs,
java.util.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. |
java.util.Collection<? extends Mapping> |
getAllMappings(java.util.Collection<?> collection)
This returns the getMappings(Object)
for each object of the collection. |
java.lang.String |
getCommandStack()
Returns the value of the 'Command Stack' attribute |
MappingDomain |
getDomain()
This returns the associated mapping domain. |
java.util.Collection<? extends Mapping> |
getExactMappings(java.util.Collection<?> collection)
This returns the subset of mappings returned by getAllMappings(java.util.Collection>)
such that have each mapping has Mapping#getMappedObjects() . |
MappedObjectState |
getMappedObjectState(java.lang.Object object)
This returns the mapping state, if any, of the given object. |
java.util.Collection<? extends Mapping> |
getMappings(java.lang.Object object)
This returns a collection of the mappings that refer to the given object. |
Mapping |
getParentMapping(java.util.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(java.lang.Object object)
This returns whether the given object descends from one of the root's input or output objects. |
boolean |
isBottomObject(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 |
---|
boolean isOutputReadOnly()
setOutputReadOnly(boolean)
,
MappingPackage.getMappingRoot_OutputReadOnly()
void setOutputReadOnly(boolean value)
Output Read Only
' attribute.
value
- the new value of the 'Output Read Only' attribute.isOutputReadOnly()
boolean isTopToBottom()
setTopToBottom(boolean)
,
MappingPackage.getMappingRoot_TopToBottom()
void setTopToBottom(boolean value)
Top To Bottom
' attribute.
value
- the new value of the 'Top To Bottom' attribute.isTopToBottom()
java.lang.String getCommandStack()
setCommandStack(String)
,
MappingPackage.getMappingRoot_CommandStack()
void setCommandStack(java.lang.String value)
Command Stack
' attribute.
value
- the new value of the 'Command Stack' attribute.getCommandStack()
MappingDomain getDomain()
void setDomain(MappingDomain domain)
void refreshMappedObjectStates(Mapping subtree)
java.util.Collection<? extends Mapping> getMappings(java.lang.Object object)
java.util.Collection<? extends Mapping> getAllMappings(java.util.Collection<?> collection)
getMappings(Object)
for each object of the collection.
java.util.Collection<? extends Mapping> getExactMappings(java.util.Collection<?> collection)
getAllMappings(java.util.Collection>)
such that have each mapping has Mapping#getMappedObjects()
.
Mapping getParentMapping(java.util.Collection<?> collection)
boolean canCreateMapping(java.util.Collection<?> inputs, java.util.Collection<?> outputs, Mapping mapping)
boolean canRemoveMapping(Mapping mapping)
Mapping createMapping(java.util.Collection<?> inputs, java.util.Collection<?> outputs)
void resetDirty()
boolean isDirty()
boolean isOutputDirty()
void setOutputDirty(boolean dirty)
boolean isInputObject(java.lang.Object object)
boolean isOutputObject(java.lang.Object object)
boolean isTopObject(java.lang.Object object)
boolean isBottomObject(java.lang.Object object)
boolean isAttachedObject(java.lang.Object object)
void register(Mapping mapping)
void deregister(Mapping mapping)
MappedObjectState getMappedObjectState(java.lang.Object object)
MappingRoot getTypeMappingRoot()
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 |