org.eclipse.gmt.umlx.tx.editor.regimes
Class UVariableRegime<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>

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,P,CM,CP>
                  extended by org.eclipse.gmt.umlx.tx.editor.regimes.UVariableRegime<M,P,CM,CP>
All Implemented Interfaces:
INodeRegimeCo0<M,P>, INodeRegimeCo1<M,P,CM,CP>, IRegime, IRegimeCo0<M,P>, IRegimeCo1<M,P,CM,CP>, IClassExtension
Direct Known Subclasses:
UAttributeVariableRegime, UClassVariableRegime, UExpressionVariableRegime

public abstract class UVariableRegime<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
extends AbstractNodeRegimeCo1<M,P,CM,CP>


Method Summary
 void createFacets(java.util.List<IFacet<? super M>> facetList)
           
abstract  INodeRegimeCo0<CM,CP> getCoRegime()
          Return the co-regime if it has one.
 java.lang.String getNewNamePrefix()
          Return a prefix for autogenerated names.
abstract  CP 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.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModel, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getLabel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass, setCoModel
 
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, createLinkEnd, createModelObject, createOutline, createPropertySource, createView, getBackElement, getBasicClass, getFacets, getModelClass, 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, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, 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, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getIcon, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

createFacets

public void createFacets(java.util.List<IFacet<? super M>> facetList)
Overrides:
createFacets in class AbstractRegime<M extends UVariable,P>

getCoRegime

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

Specified by:
getCoRegime in interface INodeRegimeCo1<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<M extends UVariable,P>
Specified by:
getCoRegime in interface IRegimeCo1<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
Specified by:
getCoRegime in class AbstractNodeRegimeCo1<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
Returns:
co-regime class or null

getNewNamePrefix

public java.lang.String getNewNamePrefix()
Description copied from interface: IRegime
Return a prefix for autogenerated names.

Specified by:
getNewNamePrefix in interface IRegime
Overrides:
getNewNamePrefix in class AbstractRegime<M extends UVariable,P>
Returns:
prefix

getParentCoModel

public abstract CP 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 UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
Specified by:
getParentCoModel in class AbstractNodeRegimeCo1<M extends UVariable,P,CM extends org.eclipse.emf.ecore.ENamedElement,CP>
Parameters:
editDomain - edit domain containing objects
parent - parent of graphical model
Returns:
co-model of parent