Class ModelRebuildDefinition

java.lang.Object
com.e1c.g5.v8.dt.internal.check.derived.ModelRebuildDefinition

public final class ModelRebuildDefinition extends Object
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 Details

    • ModelRebuildDefinition

      public ModelRebuildDefinition()
      Constructs an instance of the collector
      Parameters:
      checkRepository - The reference to the ICheckRepository service. May not be null
  • 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 collection
      checkedContainmentEClasses - The set of containment EClass'es that are targets of the full rebuild. May not be null
      complexity - The complexity of the check. May not be null
      criticalDataIntegrityCheck - The critical data integrity check designator
      checkUid - The identifier of the check. May not be null
    • getApplicableCheckUids

      public Set<CheckUid> getApplicableCheckUids(org.eclipse.emf.ecore.EClass targetEClass, boolean isTopObject, CheckComplexity complexity, boolean criticalDataIntegrityCheck)
      Gets applicable checks for the given EClass and the check complexity
      Parameters:
      targetEClass - The target EClass. May not be null
      isTopObject - The request is for the top object
      complexity - The check complexity. May not be null
      criticalDataIntegrityCheck - The critical data integrity check designator
      Returns:
      The set of applicable check unique identifiers. May not be null