Class NodeELResolver
java.lang.Object
javax.el.ELResolver
org.apache.ofbiz.base.util.string.NodeELResolver
public class NodeELResolver
extends javax.el.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 and
setValue(ELContext, Object, Object, Object)
will always throw PropertyNotWritableException.
ELResolvers are combined together to define rich semantics for evaluating an expression. See ELResolver
for details.-
Field Summary
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getCommonPropertyType
(javax.el.ELContext context, Object base) getFeatureDescriptors
(javax.el.ELContext context, Object base) Class<?>
boolean
isReadOnly
(javax.el.ELContext context, Object base, Object property) void
Methods inherited from class javax.el.ELResolver
convertToType, invoke
-
Constructor Details
-
NodeELResolver
public NodeELResolver()Creates a new read-only NodeELResolver.
-
-
Method Details
-
getCommonPropertyType
- Specified by:
getCommonPropertyType
in classjavax.el.ELResolver
-
getFeatureDescriptors
- Specified by:
getFeatureDescriptors
in classjavax.el.ELResolver
-
getType
- Specified by:
getType
in classjavax.el.ELResolver
-
getValue
- Specified by:
getValue
in classjavax.el.ELResolver
-
isReadOnly
- Specified by:
isReadOnly
in classjavax.el.ELResolver
-
setValue
- Specified by:
setValue
in classjavax.el.ELResolver
-