org.eclipse.gmt.umlx.editor.regime
Interface IRegimeCo2<M,P,CM,CP>

All Superinterfaces:
IClassExtension, IRegime, IRegimeCo0<M,P>, IRegimeCo1<M,P,CM,CP>
All Known Subinterfaces:
ILinkRegimeCo2<SM,LM,TM,P,CM,CP>, INodeRegimeCo2<M,P,CM,CP>
All Known Implementing Classes:
AbstractLinkRegimeCo2, AbstractNodeRegimeCo2, GSheetLinkRegimeCo2, GSheetNodeRegimeCo2, TxClassAttributeVariableRegime, TxClassVariable2TxAttributeVariableRegime, TxClassVariable2TxClassVariableRegime, TxClassVariableRegime, TxDomainRegime, TxEvolutionInstanceRegime, TxPreservationInstanceRegime, TxRelationInstanceRegime, TxSheetAttributeVariableRegime, TxSheetExpressionVariableRegime, TxVariableRegime

public interface IRegimeCo2<M,P,CM,CP>
extends IRegimeCo1<M,P,CM,CP>


Method Summary
 IRegimeCo2<?,?,?,?> canCoCoChange(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context)
           
 java.lang.Object getCoCoModelFor(java.lang.Object coCoModel)
          Return the co-Model to be instantiated when coModel is being instantiated.
 java.lang.Object getCoModelFor(java.lang.Object coCoModel, java.lang.Object parent)
          Return the co-Model to be instantiated when coCoModel is being instantiated for parent.
 IRegimeCo1<CM,CP,?,?> getCoRegime()
          Return the co-regime if it has one.
 ILinkRegimeCo2<?,M,?,P,CM,CP> isLink()
           
 INodeRegimeCo2<M,P,CM,CP> isNode()
           
 boolean loadCoCoModelClass()
           
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModel, getCoModelClass, getCoModelFor, getParentCoModel, loadCoModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, isRegimeCo1, isRegimeCo2, refreshProblemMessage, setCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModelParentClass, getIcon, getLabel, getNewNamePrefix, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

canCoCoChange

IRegimeCo2<?,?,?,?> canCoCoChange(IActiveEditDomain editDomain,
                                  java.lang.Object coModel,
                                  java.lang.Object context)

getCoModelFor

java.lang.Object getCoModelFor(java.lang.Object coCoModel,
                               java.lang.Object parent)
Return the co-Model to be instantiated when coCoModel is being instantiated for parent.

Parameters:
coCoModel - the co-co-model
Returns:
the co-model

getCoCoModelFor

java.lang.Object getCoCoModelFor(java.lang.Object coCoModel)
Return the co-Model to be instantiated when coModel is being instantiated. Normally returns coModel, but derivations such as GREgime may map from an EReference to an E2Association.

Parameters:
coCoModel - the co-co-model
Returns:
the co-co-model

getCoRegime

IRegimeCo1<CM,CP,?,?> getCoRegime()
Description copied from interface: IRegime
Return the co-regime if it has one.

Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<M,P>
Specified by:
getCoRegime in interface IRegimeCo1<M,P,CM,CP>
Returns:
co-regime class or null

isLink

ILinkRegimeCo2<?,M,?,P,CM,CP> isLink()
Specified by:
isLink in interface IRegimeCo0<M,P>
Specified by:
isLink in interface IRegimeCo1<M,P,CM,CP>

isNode

INodeRegimeCo2<M,P,CM,CP> isNode()
Specified by:
isNode in interface IRegimeCo0<M,P>
Specified by:
isNode in interface IRegimeCo1<M,P,CM,CP>

loadCoCoModelClass

boolean loadCoCoModelClass()