Class NodeELResolver
- java.lang.Object
-
- javax.el.ELResolver
-
- org.apache.ofbiz.base.util.string.NodeELResolver
-
public class NodeELResolver extends ELResolver
Defines property resolution behavior on Nodes. This resolver handles base objects that implement org.w3c.dom.Node or org.apache.xerces.dom.NodeImpl. It accepts a String as a property and compiles that String into an XPathExpression. The resulting value is the evaluation of the XPathExpression in the context of the base Node. This resolver is currently only available in read-only mode, which means that isReadOnly will always return true andsetValue(ELContext, Object, Object, Object)
will always throw PropertyNotWritableException. ELResolvers are combined together usingCompositeELResolver
s, to define rich semantics for evaluating an expression. See the javadocs forELResolver
for details.
-
-
Field Summary
-
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
-
Constructor Summary
Constructors Constructor Description NodeELResolver()
Creates a new read-only NodeELResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getCommonPropertyType(ELContext context, java.lang.Object base)
java.util.Iterator<java.beans.FeatureDescriptor>
getFeatureDescriptors(ELContext context, java.lang.Object base)
java.lang.Class<?>
getType(ELContext context, java.lang.Object base, java.lang.Object property)
java.lang.Object
getValue(ELContext context, java.lang.Object base, java.lang.Object property)
boolean
isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
void
setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
-
Methods inherited from class javax.el.ELResolver
convertToType, invoke
-
-
-
-
Method Detail
-
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
- Specified by:
getCommonPropertyType
in classELResolver
-
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
- Specified by:
getFeatureDescriptors
in classELResolver
-
getType
public java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property)
- Specified by:
getType
in classELResolver
-
getValue
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
- Specified by:
getValue
in classELResolver
-
isReadOnly
public boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
- Specified by:
isReadOnly
in classELResolver
-
setValue
public void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
- Specified by:
setValue
in classELResolver
-
-