Class CombinedModelCheckRemovalContextCollector

java.lang.Object
com.e1c.g5.v8.dt.internal.check.derived.CombinedModelCheckRemovalContextCollector
All Implemented Interfaces:
IRemovalContextCollector

public class CombinedModelCheckRemovalContextCollector extends Object implements IRemovalContextCollector
Model context removal collector for a single EClass which combines functional collectors from all registered checks participating in model checking process
  • Constructor Details

    • CombinedModelCheckRemovalContextCollector

      public CombinedModelCheckRemovalContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICheckRepository checkRepository, IResourceLookup resourceLookup)
      Constructs an instance
      Parameters:
      supportedType - The EClass being served by this collector. May not be null
      checkRepository - The check repository reference. May not be null
      resourceLookup - The resource lookup service reference. May not be null
  • Method Details

    • addDefinedContextCollectorRules

      public void addDefinedContextCollectorRules(CheckUid checkId, CheckDefinition definition)
      Adds a check defintion to the collector to get model context collecting rules from the definiton
      Parameters:
      definition - The check context collector definition. May not be null
      topObjectCollector - True if this collector pariticpates in collecting of context for top objects
    • collectContextOnObjectRemoval

      public void collectContextOnObjectRemoval(IBmObject bmObject, org.eclipse.emf.common.util.URI uri, IBmObject bmTopObject, BmSubEvent bmEvent, IContextCollectingSession contextSession, IBmModel model)
      Description copied from interface: IRemovalContextCollector
      This method allows to gather additional scope for after-removal clearings.
      Specified by:
      collectContextOnObjectRemoval in interface IRemovalContextCollector
      Parameters:
      bmObject - BM-detached object instance received in the process of the removal.
      uri - the URI the object had prior to removal. If the object is top, non-null value is supplied, otherwise not defined.
      bmEvent - the event that has been fired by BM in response to the deassociation
      contextSession - Session of the context collection being used to access object contexts.
      model - The BM model.
    • collectContextOnObjectRemoval

      public void collectContextOnObjectRemoval(long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, IContextCollectingSession contextSession, IBmModel model)
      Description copied from interface: IRemovalContextCollector
      This method allows to gather additional scope for after-removal clearings.
      Specified by:
      collectContextOnObjectRemoval in interface IRemovalContextCollector
      Parameters:
      bmObjectId - The identifier of the object to register the removal for.
      objectEClass - The EClass of the object to register the removal for. Cannot be null
      contextSession - Session of the context collection being used to access object contexts.
      model - The BM model.
    • getSupportedType

      public org.eclipse.emf.ecore.EClass getSupportedType()
      Description copied from interface: IRemovalContextCollector
      Gets the type of the BM object this collector supports.
      Specified by:
      getSupportedType in interface IRemovalContextCollector
      Returns:
      The type of supported BM object.