Package com.e1c.g5.v8.dt.check.context
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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelRebuildScopeCollectorDefinition.ContainmentPathNode
The node of the containment path tree.
-
Constructor Summary
Constructors Constructor Description ModelRebuildScopeCollectorDefinition(boolean rebuildTop)
Constructs the rebuild scope collector definition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 initiatedMap<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 directlyboolean
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
-
-
-
Constructor Detail
-
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 Detail
-
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 benull
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
-
-