@OpenApiAll
public class EvaluationConfigurator
extends java.lang.Object
Evaluator
Modifier | Constructor and Description |
---|---|
protected |
EvaluationConfigurator() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAvailableLanguages()
Enumerates available evaluatable languages for opaque expressions
Currently (as of v12.5) 2 languages are supported - "Binary" and "OCL2.0"
|
Evaluator |
getEvaluatorForLanguage(java.lang.String lang)
Retrieves the appropriate evaluator, which knows how to evaluate
expressions of the given language
|
static EvaluationConfigurator |
getInstance()
Retrieves configurator singleton
|
void |
registerBinaryImplementers(java.lang.ClassLoader cl)
Method allows registering additional class loaders, to load classes,
implementing binary expressions.
|
void |
registerEvaluator(java.lang.String language,
Evaluator evaluator)
Registers evaluator for the specified language.
|
void |
unregisterEvaluator(java.lang.String language)
Unregisters evaluator for the specified language.
|
public static EvaluationConfigurator getInstance()
public java.util.Set<java.lang.String> getAvailableLanguages()
public Evaluator getEvaluatorForLanguage(java.lang.String lang)
lang
- one of the evaluatable languagesEvaluator
public void registerBinaryImplementers(java.lang.ClassLoader cl)
cl
- class loader, supplying additional classes, implementing expressionspublic void registerEvaluator(java.lang.String language, Evaluator evaluator)
language
- language identifier.evaluator
- an evaluator object.public void unregisterEvaluator(java.lang.String language)
language
- language identifier.