org.eclipse.gmt.umlx.editor.facets
Class AbstractFacet<M>

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.facets.AbstractFacet<M>
All Implemented Interfaces:
IFacet<M>
Direct Known Subclasses:
BendpointsFacet, CoModelFacet, DiagramNameFacet, DirectionFacet, EnumLiteralFacet, InitExpressionFacet, LinksFacet, LocationFacet, NameFacet, ParentFacet, SheetFacet, TextFacet, UDomainFacet, VarNameFacet

public abstract class AbstractFacet<M>
extends java.lang.Object
implements IFacet<M>


Constructor Summary
AbstractFacet()
           
 
Method Summary
abstract
<T> void
change(FacetIterator<T> facetIterator, FacetIterator<? extends M> modelIterator)
           
static
<T> boolean
objectDifference(T s1, T s2)
           
static
<T> boolean
objectValueDifference(T s1, T s2)
           
abstract  void prepare(ModelState<? extends M> modelState, M newModel)
           
abstract  void requestModifications(ModelState<? extends M> modelState, IAbstractCommand rootCommand)
           
abstract  void setOldModel(ModelState<? extends M> modelState, M oldModel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFacet

public AbstractFacet()
Method Detail

objectDifference

public static <T> boolean objectDifference(T s1,
                                           T s2)

objectValueDifference

public static <T> boolean objectValueDifference(T s1,
                                                T s2)

change

public abstract <T> void change(FacetIterator<T> facetIterator,
                                FacetIterator<? extends M> modelIterator)
Specified by:
change in interface IFacet<M>

prepare

public abstract void prepare(ModelState<? extends M> modelState,
                             M newModel)
Specified by:
prepare in interface IFacet<M>

requestModifications

public abstract void requestModifications(ModelState<? extends M> modelState,
                                          IAbstractCommand rootCommand)
Specified by:
requestModifications in interface IFacet<M>

setOldModel

public abstract void setOldModel(ModelState<? extends M> modelState,
                                 M oldModel)
Specified by:
setOldModel in interface IFacet<M>