Class RootPropertyResolver

java.lang.Object
jakarta.el.ELResolver
org.camunda.bpm.impl.juel.RootPropertyResolver

public class RootPropertyResolver extends jakarta.el.ELResolver
Simple root property resolver implementation. This resolver handles root properties (i.e. base == null && property instanceof String), which are stored in a map. The properties can be accessed via the getProperty(String), setProperty(String, Object), isProperty(String) and properties() methods.
Author:
Christoph Beck
  • Constructor Details

    • RootPropertyResolver

      public RootPropertyResolver()
      Create a read/write root property resolver
    • RootPropertyResolver

      public RootPropertyResolver(boolean readOnly)
      Create a root property resolver
      Parameters:
      readOnly -
  • Method Details

    • getCommonPropertyType

      public Class<?> getCommonPropertyType(jakarta.el.ELContext context, Object base)
      Specified by:
      getCommonPropertyType in class jakarta.el.ELResolver
    • getFeatureDescriptors

      public Iterator<FeatureDescriptor> getFeatureDescriptors(jakarta.el.ELContext context, Object base)
      Overrides:
      getFeatureDescriptors in class jakarta.el.ELResolver
    • getType

      public Class<?> getType(jakarta.el.ELContext context, Object base, Object property)
      Specified by:
      getType in class jakarta.el.ELResolver
    • getValue

      public Object getValue(jakarta.el.ELContext context, Object base, Object property)
      Specified by:
      getValue in class jakarta.el.ELResolver
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext context, Object base, Object property)
      Specified by:
      isReadOnly in class jakarta.el.ELResolver
    • setValue

      public void setValue(jakarta.el.ELContext context, Object base, Object property, Object value) throws jakarta.el.PropertyNotWritableException
      Specified by:
      setValue in class jakarta.el.ELResolver
      Throws:
      jakarta.el.PropertyNotWritableException
    • invoke

      public Object invoke(jakarta.el.ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params)
      Overrides:
      invoke in class jakarta.el.ELResolver
    • getProperty

      public Object getProperty(String property)
      Get property value
      Parameters:
      property - property name
      Returns:
      value associated with the given property
    • setProperty

      public void setProperty(String property, Object value)
      Set property value
      Parameters:
      property - property name
      value - property value
    • isProperty

      public boolean isProperty(String property)
      Test property
      Parameters:
      property - property name
      Returns:
      true if the given property is associated with a value
    • properties

      public Iterable<String> properties()
      Get properties
      Returns:
      all property names (in no particular order)