Package com.inductiveautomation.sfc.api
Interface ScopeLocator
-
- All Superinterfaces:
CommonScopes
public interface ScopeLocator extends CommonScopes
The ScopeLocator system provides an extensible mechanism for module authors to provide new scopes, or locate virtual scopes.They are registered with the chart manager, and then are called any time a scope must be calculated, such as in expression bindings (like "{opscope.identifier}") or through the script context such as "context.resolve('opscope')".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PyChartScope
locate(ScopeContext scopeContext, java.lang.String identifier)
Attempts to locate the scope identified by the identifier, provided the current "scope context".
-
-
-
Method Detail
-
locate
@Nullable PyChartScope locate(ScopeContext scopeContext, java.lang.String identifier)
Attempts to locate the scope identified by the identifier, provided the current "scope context". A scope context is a collection of scopes relative to the particular location. If this locator cannot resolve the identifier, it should simply return null.- Returns:
- the located scope, or null if the identifier is not found.
-
-