Package com._1c.g5.v8.derived.context
Interface IContextCollector
- 
 public interface IContextCollectorA 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 useScopeCollectorBuilderto build an instance of scope collector.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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[]fullRebuildScope()Gets the full rebuild scope provided by this collector.org.eclipse.emf.ecore.EClassgetSupportedType()Gets the type of the BM object this collector supports.default booleanisModelContextCollector()Returnstrueif this is a model context collector.default booleanisResourceContextCollector()Returnstrueif this is a resource context collector.
 
- 
- 
- 
Method Detail- 
collectContextOnFeatureChangedefault 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 changed
- feature- the feature of the BM object that has been changed. Can be- nullin case of FQN changes
- bmEvent- the event that has been fired by BM in response to the change
- contextSession- Session of the context collection being used to access object contexts.
 
 - 
collectContextOnFullRebuilddefault 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.
 
 - 
collectContextOnFullRebuilddefault void collectContextOnFullRebuild(Object objectId, IContextCollectingSession contextSession) 
 - 
collectContextOnObjectAssociationdefault 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 associated
- bmEvent- the event that has been fired by BM in response to the association
- contextSession- Session of the context collection being used to access object contexts.
 
 - 
fullRebuildScopedefault String[] 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.
 
 - 
isResourceContextCollectordefault boolean isResourceContextCollector() Returnstrueif this is a resource context collector.- Returns:
- trueif this is a resource context collector.
 
 - 
isModelContextCollectordefault boolean isModelContextCollector() Returnstrueif this is a model context collector.- Returns:
- trueif this is a model context collector.
 
 - 
getSupportedTypeorg.eclipse.emf.ecore.EClass getSupportedType() Gets the type of the BM object this collector supports.- Returns:
- The type of supported BM object.
 
 
- 
 
-