public interface IlrBRLVariableProvider
IlrBRLVariableProvider represents a variable provider.
A variable provider is a class that allows the rule being edited
or parsed to access variables that are defined out of its scope. The
variable provider is an interface on a repository of variables. These
variables must implement the IlrBRLVariable interface.
For example, a variable provider can be used to access ruleset variables and
ruleset parameters in the context of a rule project.
The variable provider constitutes the outer scope of variable definition
for a rule. It is used through the IlrBRLSemanticContext by the
rule parser or the rule editors.
IlrBRLVariable,
IlrBRLSemanticContext| Modifier and Type | Interface and Description |
|---|---|
static interface |
IlrBRLVariableProvider.Visitor
This interface specifies a variable visitor.
|
| Modifier and Type | Method and Description |
|---|---|
IlrBRLVariable |
getVariable(IlrVocabulary vocabulary,
java.lang.String name)
Returns a variable with that name, or
null if there is no variable corresponding to that name. |
boolean |
visit(IlrVocabulary vocabulary,
IlrBRLVariableProvider.Visitor visitor)
Visits the variable provider by iterating on all variables declared by this provider.
|
IlrBRLVariable getVariable(IlrVocabulary vocabulary, java.lang.String name)
null if there is no variable corresponding to that name.vocabulary - The vocabulary in which this variable is looked up.name - The name of the variable to look for.boolean visit(IlrVocabulary vocabulary, IlrBRLVariableProvider.Visitor visitor)
vocabulary - The vocabulary in which variables are looked up.visitor - A variable visitor called for all variables declared in this variable provider.© Copyright IBM Corp. 1987, 2017