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 Details

    • AttributeEvaluationContext

      public AttributeEvaluationContext(org.springframework.expression.EvaluationContext context)
  • Method Details

    • getRootObject

      public org.springframework.expression.TypedValue getRootObject()
      Specified by:
      getRootObject in interface org.springframework.expression.EvaluationContext
    • getConstructorResolvers

      public List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
      Specified by:
      getConstructorResolvers in interface org.springframework.expression.EvaluationContext
    • getMethodResolvers

      public List<org.springframework.expression.MethodResolver> getMethodResolvers()
      Specified by:
      getMethodResolvers in interface org.springframework.expression.EvaluationContext
    • wrapPropertyAccessor

      protected org.springframework.expression.PropertyAccessor wrapPropertyAccessor(org.springframework.expression.PropertyAccessor accessor)
    • getPropertyAccessors

      public List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
      Specified by:
      getPropertyAccessors in interface org.springframework.expression.EvaluationContext
    • getTypeLocator

      public org.springframework.expression.TypeLocator getTypeLocator()
      Specified by:
      getTypeLocator in interface org.springframework.expression.EvaluationContext
    • getTypeConverter

      public org.springframework.expression.TypeConverter getTypeConverter()
      Specified by:
      getTypeConverter in interface org.springframework.expression.EvaluationContext
    • getTypeComparator

      public org.springframework.expression.TypeComparator getTypeComparator()
      Specified by:
      getTypeComparator in interface org.springframework.expression.EvaluationContext
    • getOperatorOverloader

      public org.springframework.expression.OperatorOverloader getOperatorOverloader()
      Specified by:
      getOperatorOverloader in interface org.springframework.expression.EvaluationContext
    • getBeanResolver

      public org.springframework.expression.BeanResolver getBeanResolver()
      Specified by:
      getBeanResolver in interface org.springframework.expression.EvaluationContext
    • setVariable

      public void setVariable(String key, Object value)
      Specified by:
      setVariable in interface org.springframework.expression.EvaluationContext
    • lookupVariable

      public Object lookupVariable(String key)
      Specified by:
      lookupVariable in interface org.springframework.expression.EvaluationContext
    • registerEvaluation

      public void registerEvaluation(Object object, String attribute, Object value)
      Method stores information about new property read during expression evaluation.
      Parameters:
      object - object, which property is read
      attribute - qualifier of property
      value - value read
    • getItem

      public Object getItem()
      Returns:
      item, which property was last read
    • getAttribute

      public String getAttribute()
      Returns:
      attribute of item, which value was last read
    • getValue

      public Object getValue()
      Returns:
      value of last read property