Package com._1c.g5.v8.derived.computer
Class DerivedDataPartBasedComputer
java.lang.Object
com._1c.g5.v8.derived.computer.DerivedDataPartBasedComputer
- All Implemented Interfaces:
IDerivedDataComputer
- Direct Known Subclasses:
AdditionalIndexDerivedDataComputer
,FormDerivedDataComputer
,FormExtensionDerivedDataComputer
,FormPreDerivedDataComputer
,MdCAIdxDataComputer
,MdDerivedDataComputer
,MdPreDerivedDataComputer
,RightsDerivedDataPartBasedComputer
,StylePreDerivedDataComputer
,StyleValidationComputer
Standard implementation of derived data computer which delegates computation to the specific part computers.
This implementation is coupled with
This implementation is coupled with
PartBasedObjectContext
contexts and relies on the concept of DD parts.-
Constructor Summary
ConstructorsConstructorDescriptionDerivedDataPartBasedComputer
(String supportedSegmentId, boolean readOnlyModelAccess, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer.DerivedDataPartBasedComputer
(String supportedSegmentId, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPartComputer
(IDerivedDataPartComputer partComputer) Adds new part computer to the DD computer.void
addRebuildScopeCollector
(IDerivedDataPartBasedRebuildScopeCollector scopeCollector) Adds a rebuild scope collector to the computer.void
compute
(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Computes the derived data parts of the BM object.Gets the DD segment supported by this instance of the computer.Collection<org.eclipse.emf.ecore.EClass>
-
Constructor Details
-
DerivedDataPartBasedComputer
public DerivedDataPartBasedComputer(String supportedSegmentId, boolean readOnlyModelAccess, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer. -
DerivedDataPartBasedComputer
public DerivedDataPartBasedComputer(String supportedSegmentId, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer.
-
-
Method Details
-
addPartComputer
Adds new part computer to the DD computer. The order of the computer addition affects the order of DD part execution.- Parameters:
partComputer
- The part computer instance.
-
addRebuildScopeCollector
Adds a rebuild scope collector to the computer. Rebuild scope is being collected right before the re-computation.- Parameters:
scopeCollector
- The collector.
-
compute
public void compute(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IDerivedDataComputer
Computes the derived data parts of the BM object.- Specified by:
compute
in interfaceIDerivedDataComputer
- Parameters:
objectContext
- The DD context for the target object. Cannot benull
smodel
- BM model. Cannot benull
progressMonitor
- The progress monitor that allows to cancel the computation. Cannot benull
-
getSupportedSegmentId
Description copied from interface:IDerivedDataComputer
Gets the DD segment supported by this instance of the computer.- Specified by:
getSupportedSegmentId
in interfaceIDerivedDataComputer
- Returns:
- The identifier of the supported DD segment. Cannot be
null
-
getSupportedTypes
- Specified by:
getSupportedTypes
in interfaceIDerivedDataComputer
- Returns:
- a collection of the supported BM object types. Cannot be
null
or empty
-