Class CombinedModelCheckContextCollector
java.lang.Object
com.e1c.g5.v8.dt.internal.check.derived.CombinedModelCheckContextCollector
- All Implemented Interfaces:
IContextCollector
Model context collector for a single
EClass
which combines functional collectors from all registered checks
participating in model checking process-
Constructor Summary
ConstructorsConstructorDescriptionCombinedModelCheckContextCollector
(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
collectContextOnFeatureChange
(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BmSubEvent bmEvent, IContextCollectingSession contextSession) Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.void
collectContextOnFullRebuild
(IBmObject bmObject, IContextCollectingSession contextSession) Gathers full rebuild scope.void
collectContextOnObjectAssociation
(IBmObject bmObject, BmSubEvent bmEvent, IContextCollectingSession contextSession) Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.String[]
Gets the full rebuild scope provided by this collector.org.eclipse.emf.ecore.EClass
Gets the type of the BM object this collector supports.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.derived.context.IContextCollector
collectContextOnFullRebuild, isModelContextCollector, isResourceContextCollector
-
Constructor Details
-
CombinedModelCheckContextCollector
public CombinedModelCheckContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICheckRepository checkRepository, IResourceLookup resourceLookup) Constructs an instance- Parameters:
supportedType
- TheEClass
being served by this collector. May not benull
topObjectEClass
- TheEClass
of the top object that is a target of the collection. 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
-
collectContextOnFeatureChange
public void collectContextOnFeatureChange(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BmSubEvent bmEvent, IContextCollectingSession contextSession) Description copied from interface:IContextCollector
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.- Specified by:
collectContextOnFeatureChange
in interfaceIContextCollector
- Parameters:
bmObject
- the BM object that has been changedfeature
- the feature of the BM object that has been changed. Can benull
in case of FQN changesbmEvent
- the event that has been fired by BM in response to the changecontextSession
- Session of the context collection being used to access object contexts.
-
collectContextOnFullRebuild
public void collectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession) Description copied from interface:IContextCollector
Gathers full rebuild scope. Usually it's the object itself, but in some cases it's necessary to affect other DDs of other objects.- Specified by:
collectContextOnFullRebuild
in interfaceIContextCollector
- Parameters:
bmObject
- The object to collect full rebuild context for.contextSession
- Session of the context collection being used to access object contexts.
-
collectContextOnObjectAssociation
public void collectContextOnObjectAssociation(IBmObject bmObject, BmSubEvent bmEvent, IContextCollectingSession contextSession) Description copied from interface:IContextCollector
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.- Specified by:
collectContextOnObjectAssociation
in interfaceIContextCollector
- Parameters:
bmObject
- the BM object that has been associatedbmEvent
- the event that has been fired by BM in response to the associationcontextSession
- Session of the context collection being used to access object contexts.
-
fullRebuildScope
Description copied from interface:IContextCollector
Gets the full rebuild scope provided by this collector.- Specified by:
fullRebuildScope
in interfaceIContextCollector
- Returns:
- Array of DD segments that participate in the full rebuild procedure using this collector.
Can be empty or
null
in case if this collector isn't participating in the rebuild.
-
getSupportedType
public org.eclipse.emf.ecore.EClass getSupportedType()Description copied from interface:IContextCollector
Gets the type of the BM object this collector supports.- Specified by:
getSupportedType
in interfaceIContextCollector
- Returns:
- The type of supported BM object.
-