public class DefaultExpressionService extends java.lang.Object implements ExpressionService
| Constructor and Description |
|---|
DefaultExpressionService() |
| Modifier and Type | Method and Description |
|---|---|
BTGConditionModel |
createExpression(BTGOperandModel leftOperand,
BTGOperatorModel operator,
BTGOperandModel rightOperand,
CatalogVersionModel catalogVersion)
Creates a new BTG expression.
|
BTGOperatorModel |
createOperator(java.lang.String operatorString,
CatalogVersionModel catalogVersion)
Creates an operator
|
java.util.Collection<java.lang.Class<? extends BTGOperandModel>> |
getAvailableLeftOperandTypes(BTGRuleType ruleType)
Provides information about possible types for the left operand than is used to create an expression for some
existing rule.
|
java.util.Collection<java.lang.String> |
getAvailableOperators(BTGOperandModel leftOperand)
Provides information about possible types for the operator than is used to create an expression for some existing
rule given left operand type.
|
java.util.Collection<java.lang.Class<? extends BTGOperandModel>> |
getAvailableRightOperands(BTGOperandModel leftOperand,
java.lang.String operatorType)
Provides information about possible types for the right operand than is used to create an expression for some
existing rule given left operand type and operator type.
|
void |
setBtgConfigurationService(BTGConfigurationService btgConfigurationService) |
void |
setExpressionEvaluatorRegistry(ExpressionEvaluatorRegistry expressionEvaluatorRegistry) |
void |
setModelService(ModelService modelService) |
void |
setOperandValueProviderRegistry(OperandValueProviderRegistry operandValueProviderRegistry) |
void |
setRightOperandTypes(java.util.Collection<java.lang.Class<? extends BTGGenericOperandModel>> rightOperandTypes) |
void |
setTypeService(TypeService typeService) |
BTGConditionModel |
updateExpression(BTGExpressionModel existingExpression,
BTGOperandModel updatedLeftOperand,
java.lang.String updatedOperator,
BTGOperandModel updatedRightOperand)
Updates an existing BTG expression.
|
public java.util.Collection<java.lang.Class<? extends BTGOperandModel>> getAvailableLeftOperandTypes(BTGRuleType ruleType)
ExpressionServicegetAvailableLeftOperandTypes in interface ExpressionServiceruleType - Target ruleType for an expression that will use a left operand of the type defined by the returned
collection.public java.util.Collection<java.lang.String> getAvailableOperators(BTGOperandModel leftOperand) throws InvalidOperandException
ExpressionServicegetAvailableOperators in interface ExpressionServiceleftOperand - the left operand of the expression.InvalidOperandExceptionpublic java.util.Collection<java.lang.Class<? extends BTGOperandModel>> getAvailableRightOperands(BTGOperandModel leftOperand, java.lang.String operatorType) throws InvalidOperandException
ExpressionServicegetAvailableRightOperands in interface ExpressionServiceleftOperand - the left operand of the expression.operatorType - a type of the operator of the expression.InvalidOperandExceptionpublic void setOperandValueProviderRegistry(OperandValueProviderRegistry operandValueProviderRegistry)
public void setRightOperandTypes(java.util.Collection<java.lang.Class<? extends BTGGenericOperandModel>> rightOperandTypes)
public void setTypeService(TypeService typeService)
public void setModelService(ModelService modelService)
public void setExpressionEvaluatorRegistry(ExpressionEvaluatorRegistry expressionEvaluatorRegistry)
public BTGConditionModel createExpression(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand, CatalogVersionModel catalogVersion)
ExpressionServicecreateExpression in interface ExpressionServiceleftOperand - left operand of the expressionoperator - operator of the expressionrightOperand - right operand of the expressioncatalogVersion - CatalogVersion for the operatorpublic BTGConditionModel updateExpression(BTGExpressionModel existingExpression, BTGOperandModel updatedLeftOperand, java.lang.String updatedOperator, BTGOperandModel updatedRightOperand)
ExpressionServiceupdateExpression in interface ExpressionServiceexistingExpression - expression to be updatedupdatedLeftOperand - left operand of the expressionupdatedOperator - operator of the expressionupdatedRightOperand - right operand of the expressionpublic BTGOperatorModel createOperator(java.lang.String operatorString, CatalogVersionModel catalogVersion)
ExpressionServicecreateOperator in interface ExpressionServiceoperatorString - defines the operatorcatalogVersion - CatalogVersion for the operatorpublic void setBtgConfigurationService(BTGConfigurationService btgConfigurationService)
btgConfigurationService - the btgConfigurationService to setCopyright © 2018 SAP SE. All Rights Reserved.