public interface ExpressionService
BTGOperandModel and BTGOperatorModel that can be
used in order to create an BTGExpressionModel for a given BTGRuleModel.| 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.
|
BTGConditionModel |
updateExpression(BTGExpressionModel existingExpression,
BTGOperandModel updatedLeftOperand,
java.lang.String updatedOperator,
BTGOperandModel updatedRightOperand)
Updates an existing BTG expression.
|
java.util.Collection<java.lang.Class<? extends BTGOperandModel>> getAvailableLeftOperandTypes(BTGRuleType ruleType)
ruleType - Target ruleType for an expression that will use a left operand of the type defined by the returned
collection.java.util.Collection<java.lang.String> getAvailableOperators(BTGOperandModel leftOperand) throws OperandValueProviderNotFoundException, InvalidOperandException
leftOperand - the left operand of the expression.OperandValueProviderNotFoundExceptionInvalidOperandExceptionjava.util.Collection<java.lang.Class<? extends BTGOperandModel>> getAvailableRightOperands(BTGOperandModel leftOperand, java.lang.String operatorType) throws InvalidOperandException
leftOperand - the left operand of the expression.operatorType - a type of the operator of the expression.InvalidOperandExceptionBTGConditionModel createExpression(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand, CatalogVersionModel catalogVersion)
leftOperand - left operand of the expressionoperator - operator of the expressionrightOperand - right operand of the expressioncatalogVersion - CatalogVersion for the operatorBTGConditionModel updateExpression(BTGExpressionModel existingExpression, BTGOperandModel updatedLeftOperand, java.lang.String updatedOperator, BTGOperandModel updatedRightOperand)
existingExpression - expression to be updatedupdatedLeftOperand - left operand of the expressionupdatedOperator - operator of the expressionupdatedRightOperand - right operand of the expressionBTGOperatorModel createOperator(java.lang.String operatorString, CatalogVersionModel catalogVersion)
operatorString - defines the operatorcatalogVersion - CatalogVersion for the operatorCopyright © 2018 SAP SE. All Rights Reserved.