Class ModelRebuildDefinition
java.lang.Object
com.e1c.g5.v8.dt.internal.check.derived.ModelRebuildDefinition
Collects the rebuild scope for the target model object. The rebuild scope is used directly by the
ModelCheckDerivedDataComputer to perform the computation of contexts marked for the full rebuild.
Also this collector is used by the ICheckScheduler to perform check identifier-limited collection of rebuild scope to perform
managed update of checks which settings were changed
The collector uses universal ModelRebuildScopeCollectorDefinition's to define the set of target features
for scope collection as well as associated checks identifiers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinition(boolean topIsTarget, Set<org.eclipse.emf.ecore.EClass> checkedContainmentEClasses, CheckComplexity complexity, boolean criticalDataIntegrityCheck, CheckUid checkUid) Adds a check rebuild scope definition to the rebuild scope collectorgetApplicableCheckUids(org.eclipse.emf.ecore.EClass targetEClass, boolean isTopObject, CheckComplexity complexity, boolean criticalDataIntegrityCheck) Gets applicable checks for the givenEClassand the check complexity
-
Constructor Details
-
ModelRebuildDefinition
public ModelRebuildDefinition()Constructs an instance of the collector- Parameters:
checkRepository- The reference to theICheckRepositoryservice. May not benull
-
-
Method Details
-
addDefinition
public void addDefinition(boolean topIsTarget, Set<org.eclipse.emf.ecore.EClass> checkedContainmentEClasses, CheckComplexity complexity, boolean criticalDataIntegrityCheck, CheckUid checkUid) Adds a check rebuild scope definition to the rebuild scope collector- Parameters:
topIsTarget- States that the top object itself is a target for a full rebuild context collectioncheckedContainmentEClasses- The set of containmentEClass'es that are targets of the full rebuild. May not benullcomplexity- The complexity of the check. May not benullcriticalDataIntegrityCheck- The critical data integrity check designatorcheckUid- The identifier of the check. May not benull
-
getApplicableCheckUids
public Set<CheckUid> getApplicableCheckUids(org.eclipse.emf.ecore.EClass targetEClass, boolean isTopObject, CheckComplexity complexity, boolean criticalDataIntegrityCheck) Gets applicable checks for the givenEClassand the check complexity- Parameters:
targetEClass- The targetEClass. May not benullisTopObject- The request is for the top objectcomplexity- The check complexity. May not benullcriticalDataIntegrityCheck- The critical data integrity check designator- Returns:
- The set of applicable check unique identifiers. May not be
null
-