Class RuleExecutableConditionTranslator
java.lang.Object
de.hybris.platform.ruleengineservices.definitions.conditions.RuleExecutableConditionTranslator
- All Implemented Interfaces:
RuleConditionTranslator,RuleConditionValidator,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RuleExecutableConditionTranslator
extends Object
implements RuleConditionTranslator, RuleConditionValidator, org.springframework.context.ApplicationContextAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextprotected RuleExecutableConditiongetRuleExecutableCondition(String conditionId) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory) translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Translates a rule condition to the intermediate representation.voidvalidate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Validates a rule condition.
-
Field Details
-
CONDITION_ID_PARAM
- See Also:
-
-
Constructor Details
-
RuleExecutableConditionTranslator
public RuleExecutableConditionTranslator()
-
-
Method Details
-
validate
public void validate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Description copied from interface:RuleConditionValidatorValidates a rule condition.- Specified by:
validatein interfaceRuleConditionValidator- Parameters:
context- - the compiler contextcondition- - the conditionconditionDefinition- - the condition definition
-
translate
public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Description copied from interface:RuleConditionTranslatorTranslates a rule condition to the intermediate representation.- Specified by:
translatein interfaceRuleConditionTranslator- Parameters:
context- - the compiler contextcondition- - the conditionconditionDefinition- - the condition definition- Returns:
- the intermediate representation for the condition
-
getRuleExecutableCondition
-
getRuleCompilerProblemFactory
-
setRuleCompilerProblemFactory
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-