Class 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.
  • Constructor Details

    • NodeELResolver

      public NodeELResolver()
      Creates a new read-only NodeELResolver.
  • Method Details

    • getCommonPropertyType

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

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

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

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

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

      public void setValue(javax.el.ELContext context, Object base, Object property, Object value)
      Specified by:
      setValue in class javax.el.ELResolver