Class PartBasedCaseSpecificContextCollector
java.lang.Object
com._1c.g5.v8.internal.derived.context.PartBasedCaseSpecificContextCollector
- All Implemented Interfaces:
ICaseSpecificContextCollector
public class PartBasedCaseSpecificContextCollector
extends Object
implements ICaseSpecificContextCollector
Implementation of
ICaseSpecificContextCollector
interface based on the DD part concept
(separate atomic parts of DD data). It's intended to use with corresponding DD context type.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionPartBasedCaseSpecificContextCollector
(org.eclipse.emf.ecore.EClass supportedType, Collection<Pair<PartBasedCaseSpecificContextCollector.Target, Collection<String>>> targetToParts) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectContext
(IBmObject contextObject, BmSubEvent bmEvent, IContextCollectingSession contextSession) Gets called to perform custom scope collection.String[]
Collects DD segments that are being affected by the rebuild scope collecting procedure of this collector.
-
Constructor Details
-
PartBasedCaseSpecificContextCollector
public PartBasedCaseSpecificContextCollector(org.eclipse.emf.ecore.EClass supportedType, Collection<Pair<PartBasedCaseSpecificContextCollector.Target, Collection<String>>> targetToParts) Constructs a new instance.- Parameters:
supportedType
- the supported BM object typetargetToParts
- a map that represent the rule set
-
-
Method Details
-
collectContext
public void collectContext(IBmObject contextObject, BmSubEvent bmEvent, IContextCollectingSession contextSession) Gets called to perform custom scope collection.- Specified by:
collectContext
in interfaceICaseSpecificContextCollector
- Parameters:
contextObject
- the bmObject to perform scope collection forbmEvent
- the BM event that caused the necessity of derived data computation. The event may be used to extract some additional information.contextSession
- Session of the context collection being used to access object contexts.
-
fullRebuildScope
Description copied from interface:ICaseSpecificContextCollector
Collects DD segments that are being affected by the rebuild scope collecting procedure of this collector.- Specified by:
fullRebuildScope
in interfaceICaseSpecificContextCollector
- Returns:
- Arrays of affected DD segments if any; Null/empty array in case if this collector doesn't provide rebuild scope collection.
-