Class AttributeEvaluationContext
java.lang.Object
com.hybris.backoffice.cockpitng.dataaccess.facades.type.expression.AttributeEvaluationContext
- All Implemented Interfaces:
org.springframework.expression.EvaluationContext
public class AttributeEvaluationContext
extends Object
implements org.springframework.expression.EvaluationContext
EvaluationContext wrapper, that stores last read property during expression evaluation. Each
PropertyAccessor is wrapped with AttributePropertyAccessor.-
Constructor Summary
ConstructorsConstructorDescriptionAttributeEvaluationContext(org.springframework.expression.EvaluationContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.BeanResolverList<org.springframework.expression.ConstructorResolver>getItem()List<org.springframework.expression.MethodResolver>org.springframework.expression.OperatorOverloaderList<org.springframework.expression.PropertyAccessor>org.springframework.expression.TypedValueorg.springframework.expression.TypeComparatororg.springframework.expression.TypeConverterorg.springframework.expression.TypeLocatorgetValue()lookupVariable(String key) voidregisterEvaluation(Object object, String attribute, Object value) Method stores information about new property read during expression evaluation.voidsetVariable(String key, Object value) protected org.springframework.expression.PropertyAccessorwrapPropertyAccessor(org.springframework.expression.PropertyAccessor accessor)
-
Constructor Details
-
AttributeEvaluationContext
public AttributeEvaluationContext(org.springframework.expression.EvaluationContext context)
-
-
Method Details
-
getRootObject
public org.springframework.expression.TypedValue getRootObject()- Specified by:
getRootObjectin interfaceorg.springframework.expression.EvaluationContext
-
getConstructorResolvers
- Specified by:
getConstructorResolversin interfaceorg.springframework.expression.EvaluationContext
-
getMethodResolvers
- Specified by:
getMethodResolversin interfaceorg.springframework.expression.EvaluationContext
-
wrapPropertyAccessor
protected org.springframework.expression.PropertyAccessor wrapPropertyAccessor(org.springframework.expression.PropertyAccessor accessor) -
getPropertyAccessors
- Specified by:
getPropertyAccessorsin interfaceorg.springframework.expression.EvaluationContext
-
getTypeLocator
public org.springframework.expression.TypeLocator getTypeLocator()- Specified by:
getTypeLocatorin interfaceorg.springframework.expression.EvaluationContext
-
getTypeConverter
public org.springframework.expression.TypeConverter getTypeConverter()- Specified by:
getTypeConverterin interfaceorg.springframework.expression.EvaluationContext
-
getTypeComparator
public org.springframework.expression.TypeComparator getTypeComparator()- Specified by:
getTypeComparatorin interfaceorg.springframework.expression.EvaluationContext
-
getOperatorOverloader
public org.springframework.expression.OperatorOverloader getOperatorOverloader()- Specified by:
getOperatorOverloaderin interfaceorg.springframework.expression.EvaluationContext
-
getBeanResolver
public org.springframework.expression.BeanResolver getBeanResolver()- Specified by:
getBeanResolverin interfaceorg.springframework.expression.EvaluationContext
-
setVariable
- Specified by:
setVariablein interfaceorg.springframework.expression.EvaluationContext
-
lookupVariable
- Specified by:
lookupVariablein interfaceorg.springframework.expression.EvaluationContext
-
registerEvaluation
Method stores information about new property read during expression evaluation.- Parameters:
object- object, which property is readattribute- qualifier of propertyvalue- value read
-
getItem
- Returns:
- item, which property was last read
-
getAttribute
- Returns:
- attribute of item, which value was last read
-
getValue
- Returns:
- value of last read property
-