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 java.lang.Object implements RuleConditionTranslator, RuleConditionValidator, org.springframework.context.ApplicationContextAware
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONDITION_ID_PARAM
-
Constructor Summary
Constructors Constructor Description RuleExecutableConditionTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()RuleCompilerProblemFactorygetRuleCompilerProblemFactory()protected RuleExecutableConditiongetRuleExecutableCondition(java.lang.String conditionId)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory)RuleIrConditiontranslate(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 Detail
-
CONDITION_ID_PARAM
public static final java.lang.String CONDITION_ID_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
protected RuleExecutableCondition getRuleExecutableCondition(java.lang.String conditionId)
-
getRuleCompilerProblemFactory
public RuleCompilerProblemFactory getRuleCompilerProblemFactory()
-
setRuleCompilerProblemFactory
public void setRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
-