Package com._1c.g5.v8.derived.context
Interface IContextCollector
- All Known Implementing Classes:
CombinedModelCheckContextCollector,ContextCollector,LanguageCheckContextCollector,SubsystemUpdateContextCollector
public interface IContextCollector
A scope collector's purpose is to provide scope of derived data computations
in case of one or another BM event.
Note that clients should not implement this interface themselves, but rather use
Note that clients should not implement this interface themselves, but rather use
ScopeCollectorBuilder to build an instance of scope collector.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcollectContextOnFeatureChange(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.default voidcollectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession) Gathers full rebuild scope.default voidcollectContextOnFullRebuild(Object objectId, IContextCollectingSession contextSession) default voidcollectContextOnObjectAssociation(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.default String[]Gets the full rebuild scope provided by this collector.org.eclipse.emf.ecore.EClassGets the type of the BM object this collector supports.default booleanReturnstrueif this is a model context collector.default booleanReturnstrueif this is a resource context collector.
-
Method Details
-
collectContextOnFeatureChange
default void 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.- Parameters:
bmObject- the BM object that has been changedfeature- the feature of the BM object that has been changed. Can benullin 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
default void collectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession) Gathers full rebuild scope. Usually it's the object itself, but in some cases it's necessary to affect other DDs of other objects.- Parameters:
bmObject- The object to collect full rebuild context for.contextSession- Session of the context collection being used to access object contexts.
-
collectContextOnFullRebuild
-
collectContextOnObjectAssociation
default 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.- 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
Gets the full rebuild scope provided by this collector.- Returns:
- Array of DD segments that participate in the full rebuild procedure using this collector.
Can be empty or
nullin case if this collector isn't participating in the rebuild.
-
isResourceContextCollector
default boolean isResourceContextCollector()Returnstrueif this is a resource context collector.- Returns:
trueif this is a resource context collector.
-
isModelContextCollector
default boolean isModelContextCollector()Returnstrueif this is a model context collector.- Returns:
trueif this is a model context collector.
-
getSupportedType
org.eclipse.emf.ecore.EClass getSupportedType()Gets the type of the BM object this collector supports.- Returns:
- The type of supported BM object.
-