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 TypeMethodDescriptionvoid
addDefinedContextCollectorRules
(CheckUid checkId, CheckDefinition definition) Adds a check defintion to the collector to get model context collecting rules from the definitonvoid
collectContextOnObjectRemoval
(long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, IContextCollectingSession contextSession, IBmModel model) This method allows to gather additional scope for after-removal clearings.void
collectContextOnObjectRemoval
(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.EClass
Gets 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
- TheEClass
being served by this collector. May not benull
checkRepository
- The check repository reference. May not benull
resourceLookup
- 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 benull
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 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-null
value 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:IRemovalContextCollector
This method allows to gather additional scope for after-removal clearings.- Specified by:
collectContextOnObjectRemoval
in interfaceIRemovalContextCollector
- Parameters:
bmObjectId
- The identifier of the object to register the removal for.objectEClass
- TheEClass
of the object to register the removal for. Cannot benull
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 interfaceIRemovalContextCollector
- Returns:
- The type of supported BM object.
-