Package org.camunda.bpm.impl.juel
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
-
Field Summary
Fields inherited from class jakarta.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
Constructor Summary
ConstructorDescriptionCreate a read/write root property resolverRootPropertyResolver
(boolean readOnly) Create a root property resolver -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getCommonPropertyType
(jakarta.el.ELContext context, Object base) getFeatureDescriptors
(jakarta.el.ELContext context, Object base) getProperty
(String property) Get property valueClass<?>
invoke
(jakarta.el.ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) boolean
isProperty
(String property) Test propertyboolean
isReadOnly
(jakarta.el.ELContext context, Object base, Object property) Get propertiesvoid
setProperty
(String property, Object value) Set property valuevoid
Methods inherited from class jakarta.el.ELResolver
convertToType
-
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
- Specified by:
getCommonPropertyType
in classjakarta.el.ELResolver
-
getFeatureDescriptors
- Overrides:
getFeatureDescriptors
in classjakarta.el.ELResolver
-
getType
- Specified by:
getType
in classjakarta.el.ELResolver
-
getValue
- Specified by:
getValue
in classjakarta.el.ELResolver
-
isReadOnly
- Specified by:
isReadOnly
in classjakarta.el.ELResolver
-
setValue
public void setValue(jakarta.el.ELContext context, Object base, Object property, Object value) throws jakarta.el.PropertyNotWritableException - Specified by:
setValue
in classjakarta.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 classjakarta.el.ELResolver
-
getProperty
Get property value- Parameters:
property
- property name- Returns:
- value associated with the given property
-
setProperty
Set property value- Parameters:
property
- property namevalue
- property value
-
isProperty
Test property- Parameters:
property
- property name- Returns:
true
if the given property is associated with a value
-
properties
Get properties- Returns:
- all property names (in no particular order)
-