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 Summary
ConstructorsConstructorDescriptionCombinedModelCheckRemovalContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICheckRepository checkRepository, IResourceLookup resourceLookup) Constructs an instance -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinedContextCollectorRules(CheckUid checkId, CheckDefinition definition) Adds a check defintion to the collector to get model context collecting rules from the definitonvoidcollectContextOnObjectRemoval(long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, IContextCollectingSession contextSession, IBmModel model) This method allows to gather additional scope for after-removal clearings.voidcollectContextOnObjectRemoval(IBmObject bmObject, org.eclipse.emf.common.util.URI uri, IBmObject bmTopObject, BmSubEvent bmEvent, IContextCollectingSession contextSession, IBmModel model) This method allows to gather additional scope for after-removal clearings.org.eclipse.emf.ecore.EClassGets the type of the BM object this collector supports.
-
Constructor Details
-
CombinedModelCheckRemovalContextCollector
public CombinedModelCheckRemovalContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICheckRepository checkRepository, IResourceLookup resourceLookup) Constructs an instance- Parameters:
supportedType- TheEClassbeing served by this collector. May not benullcheckRepository- The check repository reference. May not benullresourceLookup- The resource lookup service reference. May not benull
-
-
Method Details
-
addDefinedContextCollectorRules
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 benulltopObjectCollector- 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:IRemovalContextCollectorThis method allows to gather additional scope for after-removal clearings.- Specified by:
collectContextOnObjectRemovalin interfaceIRemovalContextCollector- 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-nullvalue is supplied, otherwise not defined.bmEvent- the event that has been fired by BM in response to the deassociationcontextSession- 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:IRemovalContextCollectorThis method allows to gather additional scope for after-removal clearings.- Specified by:
collectContextOnObjectRemovalin interfaceIRemovalContextCollector- Parameters:
bmObjectId- The identifier of the object to register the removal for.objectEClass- TheEClassof the object to register the removal for. Cannot benullcontextSession- 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:IRemovalContextCollectorGets the type of the BM object this collector supports.- Specified by:
getSupportedTypein interfaceIRemovalContextCollector- Returns:
- The type of supported BM object.
-