Class ModelRebuildScopeCollectorDefinition

java.lang.Object
com.e1c.g5.v8.dt.check.context.ModelRebuildScopeCollectorDefinition

public final class ModelRebuildScopeCollectorDefinition extends Object
This definition instructs the process of the check rebuild scope collection with a rebuild scenario for a particular type of the object. The scope collector uses this definition to visit necessary containments and features and collect target objects.
The system adds a check validation task for each applicable object being collected This definition is also used to collect a single check rebuild scope for operations of forced validation with limited object scope (e.g. during the check settings changes and so on)
  • Constructor Details

    • ModelRebuildScopeCollectorDefinition

      public ModelRebuildScopeCollectorDefinition(boolean rebuildTop)
      Constructs the rebuild scope collector definition
      Parameters:
      rebuildTop - Set to true in case if the top object itself is a target for the check in the result of the rebuild process
  • Method Details

    • addRebuildTargetFeature

      public void addRebuildTargetFeature(org.eclipse.emf.ecore.EStructuralFeature... featurePath)
      Adds the feature that will be a target of a check in case if the model rebuild proccess will be initiated
      Parameters:
      featurePath - The chain of features from the top object feature to the target feature. May not be null or empty
    • getRebuildTargetFeatures

      public Map<org.eclipse.emf.ecore.EStructuralFeature,ModelRebuildScopeCollectorDefinition.ContainmentPathNode> getRebuildTargetFeatures()
      Gets the definition of rebuild targets in form of the feature path tree set.
      This method shouldn't be used by check developers directly
      Returns:
      The map of of feature path trees mapped to their root features. May not be null
    • isRebuildTop

      public boolean isRebuildTop()
      Checks if the corresponding rebuild scope collector should schedule the re-check of the root object as well as its containments being addressed via feature paths
      Returns:
      True if the top object should be a check target in case of the full rebuild