org.apache.myfaces.el.convert
Class VariableResolverToELResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by org.apache.myfaces.el.convert.VariableResolverToELResolver

public final class VariableResolverToELResolver
extends javax.el.ELResolver

Wrapper that converts a VariableResolver into an ELResolver. See JSF 1.2 spec section 5.6.1.5

Version:
$Revision: 1215316 $ $Date: 2011-12-16 17:07:07 -0500 (Fri, 16 Dec 2011) $
Author:
Stan Silvert (latest modification by $Author: lu4242 $), Mathias Broekelmann

Field Summary
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
VariableResolverToELResolver(VariableResolver variableResolver)
          Creates a new instance of VariableResolverToELResolver
 
Method Summary
 Class<?> getCommonPropertyType(javax.el.ELContext context, Object base)
           
 Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, Object base)
           
 Class<?> getType(javax.el.ELContext context, Object base, Object property)
           
 Object getValue(javax.el.ELContext context, Object base, Object property)
           
 VariableResolver getVariableResolver()
           
 boolean isReadOnly(javax.el.ELContext context, Object base, Object property)
           
 void setValue(javax.el.ELContext context, Object base, Object property, Object value)
           
 
Methods inherited from class javax.el.ELResolver
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableResolverToELResolver

public VariableResolverToELResolver(VariableResolver variableResolver)
Creates a new instance of VariableResolverToELResolver

Method Detail

getVariableResolver

public VariableResolver getVariableResolver()
Returns:
the variableResolver

getValue

public Object getValue(javax.el.ELContext context,
                       Object base,
                       Object property)
                throws NullPointerException,
                       javax.el.PropertyNotFoundException,
                       javax.el.ELException
Specified by:
getValue in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getCommonPropertyType

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

setValue

public void setValue(javax.el.ELContext context,
                     Object base,
                     Object property,
                     Object value)
              throws NullPointerException,
                     javax.el.PropertyNotFoundException,
                     javax.el.PropertyNotWritableException,
                     javax.el.ELException
Specified by:
setValue in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException

isReadOnly

public boolean isReadOnly(javax.el.ELContext context,
                          Object base,
                          Object property)
                   throws NullPointerException,
                          javax.el.PropertyNotFoundException,
                          javax.el.ELException
Specified by:
isReadOnly in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getType

public Class<?> getType(javax.el.ELContext context,
                        Object base,
                        Object property)
                 throws NullPointerException,
                        javax.el.PropertyNotFoundException,
                        javax.el.ELException
Specified by:
getType in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getFeatureDescriptors

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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.