Class ContextCollector
java.lang.Object
com._1c.g5.v8.internal.derived.context.ContextCollector
- All Implemented Interfaces:
- IContextCollector
Standard implementation of 
IContextCollector interface.
 Relies on part-based contexts.- 
Constructor SummaryConstructorsConstructorDescriptionContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICaseSpecificContextCollector onObjectAssociationContextCollector, ICaseSpecificContextCollector onFullRebuildContextCollector, Map<org.eclipse.emf.ecore.EStructuralFeature, ICaseSpecificContextCollector> onFeatureChangeContextCollectors, ICaseSpecificContextCollector onBinaryAttachmentContextCollector) Constructs a new instance, performs basic initialization.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcollectContextOnFeatureChange(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.voidcollectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession) Gathers full rebuild scope.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.String[]Gets the full rebuild scope provided by this collector.org.eclipse.emf.ecore.EClassGets the type of the BM object this collector supports.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.derived.context.IContextCollectorcollectContextOnFullRebuild, isModelContextCollector, isResourceContextCollector
- 
Constructor Details- 
ContextCollectorpublic ContextCollector(org.eclipse.emf.ecore.EClass supportedType, ICaseSpecificContextCollector onObjectAssociationContextCollector, ICaseSpecificContextCollector onFullRebuildContextCollector, Map<org.eclipse.emf.ecore.EStructuralFeature, ICaseSpecificContextCollector> onFeatureChangeContextCollectors, ICaseSpecificContextCollector onBinaryAttachmentContextCollector) Constructs a new instance, performs basic initialization.- Parameters:
- supportedType- the supported BM object type
- onObjectAssociationContextCollector- the scope collector to use to define the scope of computations on object association
- onFullRebuildContextCollector- the scope collector to use during the full rebuild scope collecting operations
- onFeatureChangeContextCollectors- a map, where keys are the features change of which provokes derived data computation and values are the collectors used to defined the scope of computations
- onBinaryAttachmentContextCollector- the scope collector to use during the binary attachment change operations
 
 
- 
- 
Method Details- 
collectContextOnFeatureChangepublic void collectContextOnFeatureChange(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BmSubEvent bmEvent, IContextCollectingSession contextSession) Description copied from interface:IContextCollectorProvides 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:
- collectContextOnFeatureChangein interface- IContextCollector
- 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.
 
- 
collectContextOnFullRebuildpublic void collectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession) Description copied from interface:IContextCollectorGathers 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:
- collectContextOnFullRebuildin interface- IContextCollector
- Parameters:
- bmObject- The object to collect full rebuild context for.
- contextSession- Session of the context collection being used to access object contexts.
 
- 
collectContextOnObjectAssociationpublic void collectContextOnObjectAssociation(IBmObject bmObject, BmSubEvent bmEvent, IContextCollectingSession contextSession) Description copied from interface:IContextCollectorProvides 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:
- collectContextOnObjectAssociationin interface- IContextCollector
- 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.
 
- 
fullRebuildScopeDescription copied from interface:IContextCollectorGets the full rebuild scope provided by this collector.- Specified by:
- fullRebuildScopein interface- IContextCollector
- 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.
 
- 
getSupportedTypepublic org.eclipse.emf.ecore.EClass getSupportedType()Description copied from interface:IContextCollectorGets the type of the BM object this collector supports.- Specified by:
- getSupportedTypein interface- IContextCollector
- Returns:
- The type of supported BM object.
 
 
-