Class DefaultSnExpressionEvaluator
java.lang.Object
de.hybris.platform.searchservices.core.service.impl.DefaultSnExpressionEvaluator
- All Implemented Interfaces:
SnExpressionEvaluator
Default implementation of
SnExpressionEvaluator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]buildAttributePath(String expression) protected ObjectdoEvaluate(Object root, String attribute, Locale locale) Evaluates an expression.Evaluates an expression.protected ObjectresolveAttributeValue(Object root, String attribute, Locale locale) protected ObjectresolveItemAttributeValue(ItemModel root, String attribute, Locale locale) protected ObjectresolveObjectAttributeValue(Object root, String attribute) voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService)
-
Field Details
-
SEPARATOR
protected static final char SEPARATOR- See Also:
-
-
Constructor Details
-
DefaultSnExpressionEvaluator
public DefaultSnExpressionEvaluator()
-
-
Method Details
-
evaluate
Description copied from interface:SnExpressionEvaluatorEvaluates an expression.- Specified by:
evaluatein interfaceSnExpressionEvaluator- Parameters:
root- - the root objectexpression- - the expression- Returns:
- value of the evaluated expression
- Throws:
SnException- if an error occurs
-
evaluate
Description copied from interface:SnExpressionEvaluatorEvaluates an expression.- Specified by:
evaluatein interfaceSnExpressionEvaluator- Parameters:
root- - the root objectexpression- - the expression- Returns:
- value of the evaluated expression
- Throws:
SnException- if an error occurs
-
buildAttributePath
-
doEvaluate
- Throws:
SnException
-
resolveAttributeValue
protected Object resolveAttributeValue(Object root, String attribute, Locale locale) throws SnException - Throws:
SnException
-
resolveItemAttributeValue
-
resolveObjectAttributeValue
- Throws:
SnException
-
getTypeService
-
setTypeService
-
getModelService
-
setModelService
-