org.eclipse.gmt.umlx.tx.editor.regimes
Class UMappingInstanceRegime<M extends UMappingInstance,CM extends UMapping>

java.lang.Object
  extended by org.eclipse.gmt.umlx.utils.ClassExtension<M>
      extended by org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
          extended by org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
              extended by org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1<M,URelation,CM,UTransformation>
                  extended by org.eclipse.gmt.umlx.tx.editor.regimes.UMappingInstanceRegime<M,CM>
All Implemented Interfaces:
INodeRegimeCo0<M,URelation>, INodeRegimeCo1<M,URelation,CM,UTransformation>, IRegime, IRegimeCo0<M,URelation>, IRegimeCo1<M,URelation,CM,UTransformation>, IClassExtension
Direct Known Subclasses:
UEvolutionInstanceRegime, UPreservationInstanceRegime, URelationInstanceRegime

public abstract class UMappingInstanceRegime<M extends UMappingInstance,CM extends UMapping>
extends AbstractNodeRegimeCo1<M,URelation,CM,UTransformation>


Method Summary
 EModelPropertySource<M> createPropertySource(M model)
           
 CM getCoModel(java.lang.Object model)
          Return the co-model of model if it has one.
 org.eclipse.emf.ecore.EPackage getParentCoModel(IActiveEditDomain editDomain, java.lang.Object parent)
          Return the object to be coModel of the parent of a model created by this regime in editDomain.
 void setCoModel(M model, java.lang.Object coModel)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getCoRegime, getLabel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0
cannotCreate, createFigure
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createFacets, createLinkEnd, createModelObject, createOutline, createView, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass, initialise, isRegimeCo0, load, refreshProblemMessage, toString
 
Methods inherited from class org.eclipse.gmt.umlx.utils.ClassExtension
toDebugString, toUserString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, getNewNamePrefix, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.INodeRegimeCo0
cannotCreate, createFigure
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, getNewNamePrefix, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

createPropertySource

public EModelPropertySource<M> createPropertySource(M model)
Specified by:
createPropertySource in interface IRegimeCo0<M extends UMappingInstance,URelation>
Overrides:
createPropertySource in class AbstractRegime<M extends UMappingInstance,URelation>

getCoModel

public CM getCoModel(java.lang.Object model)
Description copied from interface: IRegime
Return the co-model of model if it has one.

Specified by:
getCoModel in interface IRegime
Specified by:
getCoModel in interface IRegimeCo1<M extends UMappingInstance,URelation,CM extends UMapping,UTransformation>
Specified by:
getCoModel in class AbstractNodeRegimeCo1<M extends UMappingInstance,URelation,CM extends UMapping,UTransformation>
Parameters:
model - model
Returns:
co-model or null

getParentCoModel

public org.eclipse.emf.ecore.EPackage getParentCoModel(IActiveEditDomain editDomain,
                                                       java.lang.Object parent)
Description copied from interface: IRegimeCo1
Return the object to be coModel of the parent of a model created by this regime in editDomain. The return is nominally just parent.coModel() after type validation, but derived implementations may add policies to provide defaults parents for orphans.

Specified by:
getParentCoModel in interface IRegimeCo1<M extends UMappingInstance,URelation,CM extends UMapping,UTransformation>
Specified by:
getParentCoModel in class AbstractNodeRegimeCo1<M extends UMappingInstance,URelation,CM extends UMapping,UTransformation>
Parameters:
editDomain - edit domain containing objects
parent - parent of graphical model
Returns:
co-model of parent

setCoModel

public void setCoModel(M model,
                       java.lang.Object coModel)
Specified by:
setCoModel in interface IRegimeCo0<M extends UMappingInstance,URelation>
Specified by:
setCoModel in class AbstractNodeRegimeCo1<M extends UMappingInstance,URelation,CM extends UMapping,UTransformation>