org.eclipse.gmt.umlx.editor.regime
Class AbstractTransientContainmentLinksCo0Regime<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>

java.lang.Object
  extended by org.eclipse.gmt.umlx.utils.ClassExtension<M>
      extended by org.eclipse.gmt.umlx.editor.regime.AbstractRegime<LM,P>
          extended by org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0<SM,LM,TM,P>
              extended by org.eclipse.gmt.umlx.editor.regime.AbstractTransientLinkCo0Regime<SM,LM,TM,P>
                  extended by org.eclipse.gmt.umlx.editor.regime.AbstractTransientContainmentLinksCo0Regime<SM,LM,TM,P>
All Implemented Interfaces:
ILinkRegimeCo0<SM,LM,TM,P>, ILinkRegimeEnums, IRegime, IRegimeCo0<LM,P>, IClassExtension
Direct Known Subclasses:
E2AttributionRegime, UMapping2UDomainRegime, UTransformation2UTypedModelRegime

public abstract class AbstractTransientContainmentLinksCo0Regime<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>
extends AbstractTransientLinkCo0Regime<SM,LM,TM,P>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeEnums
ILinkRegimeEnums.IsCreate, ILinkRegimeEnums.IsReconnect, ILinkRegimeEnums.IsReCreate
 
Method Summary
 void addConnection(int sourceIndex, ILinkEnd newSourceEnd, LM link, ILinkEnd newTargetEnd, int targetIndex)
           
 IErrorMessage cannotConnectFrom0(SM source, TM target, ILinkRegimeEnums.IsCreate isCreate)
           
 IErrorMessage cannotConnectTo0(SM source, TM target, ILinkRegimeEnums.IsCreate isCreate)
           
 DeleteCommand createDeleteCommand(DeleteDomain deleteDomain, LM model)
           
 boolean isContainment()
          Return true if this is a containment of the target by the source.
 java.lang.Integer[] removeConnection(SM source, LM link, TM target)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractTransientLinkCo0Regime
createModelObject, getActualConnectionsBetween0, getSource0, getTarget0
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0
canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createFacets, createFigure, createLinkEnd, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getBendpoints, getCoCoModelsFor, getCoRegime, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceConnections, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetConnections, getTargetLinkEnd, getTargetModelClass, getTargetNode, isLink, isRegimeCo1, isRegimeCo2, resolveRegime, sourceIsOptional, targetIsOptional
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createModelObject, createOutline, createPropertySource, createView, getBackElement, getBasicClass, getCoModel, getCoModelClass, getCoModelParentClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, initialise, isNode, isRegimeCo0, load, refreshProblemMessage, setCoModel, 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, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isNode, isRegimeCo0, refreshProblemMessage, setCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getIcon, getLabel, getNewNamePrefix, getSheetClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

addConnection

public void addConnection(int sourceIndex,
                          ILinkEnd newSourceEnd,
                          LM link,
                          ILinkEnd newTargetEnd,
                          int targetIndex)
Specified by:
addConnection in interface ILinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>
Overrides:
addConnection in class AbstractLinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>

cannotConnectFrom0

public IErrorMessage cannotConnectFrom0(SM source,
                                        TM target,
                                        ILinkRegimeEnums.IsCreate isCreate)

cannotConnectTo0

public IErrorMessage cannotConnectTo0(SM source,
                                      TM target,
                                      ILinkRegimeEnums.IsCreate isCreate)

createDeleteCommand

public final DeleteCommand createDeleteCommand(DeleteDomain deleteDomain,
                                               LM model)
Specified by:
createDeleteCommand in interface IRegimeCo0<LM extends E2TransientLink,P>
Overrides:
createDeleteCommand in class AbstractRegime<LM extends E2TransientLink,P>

isContainment

public final boolean isContainment()
Description copied from class: AbstractLinkRegimeCo0
Return true if this is a containment of the target by the source.

Specified by:
isContainment in interface ILinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>
Overrides:
isContainment in class AbstractLinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>
Returns:
if a containment relationship.

removeConnection

public final java.lang.Integer[] removeConnection(SM source,
                                                  LM link,
                                                  TM target)
Specified by:
removeConnection in interface ILinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>
Overrides:
removeConnection in class AbstractLinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM extends E2TransientLink,TM extends org.eclipse.emf.ecore.EObject,P>