Class QueryScope


public abstract class QueryScope extends EngineContextFactory
Defines a scope for a Refinery Interpreter engine, which determines the set of model elements that query evaluation operates on.
  • Constructor Details

    • QueryScope

      public QueryScope()
  • Method Details

    • isCompatibleWithQueryScope

      public boolean isCompatibleWithQueryScope(Class<? extends QueryScope> queryScopeClass)
      Determines whether a query engine initialized on this scope can evaluate queries formulated against the given scope type.

      Every query scope class is compatible with a query engine initialized on a scope of the same class or a subclass.

      Parameters:
      queryScopeClass - the scope class returned by invoking IQuerySpecification.getPreferredScopeClass() on a query specification
      Returns:
      true if an InterpreterEngine initialized on this scope can consume an IQuerySpecification