com.caucho.el
Class AbstractVariableResolver
java.lang.Object
javax.el.ELResolver
com.caucho.el.AbstractVariableResolver
- Direct Known Subclasses:
- ConfigPropertiesResolver, EnvironmentResolver, EnvironmentVariableResolver, PageContextELResolver, SystemPropertiesResolver
public class AbstractVariableResolver
- extends ELResolver
Abstract variable resolver. Supports chaining and the "Var"
special variable.
Method Summary |
java.lang.Class<?> |
getCommonPropertyType(ELContext context,
java.lang.Object base)
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base)
|
ELResolver |
getNext()
Returns the next resolver. |
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)
Returns the named variable value. |
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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractVariableResolver
public AbstractVariableResolver()
- Creates the resolver
AbstractVariableResolver
public AbstractVariableResolver(ELResolver next)
- Creates the resolver
getNext
public ELResolver getNext()
- Returns the next resolver.
getValue
public java.lang.Object getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
- Returns the named variable value.
- Specified by:
getValue
in class ELResolver
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(ELContext context,
java.lang.Object base)
- Specified by:
getCommonPropertyType
in class ELResolver
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context,
java.lang.Object base)
- Specified by:
getFeatureDescriptors
in class ELResolver
getType
public java.lang.Class<?> getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
- Specified by:
getType
in class ELResolver
isReadOnly
public boolean isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
throws PropertyNotFoundException,
ELException
- Specified by:
isReadOnly
in class ELResolver
- Throws:
PropertyNotFoundException
ELException
setValue
public void setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
throws PropertyNotFoundException,
PropertyNotWritableException,
ELException
- Specified by:
setValue
in class ELResolver
- Throws:
PropertyNotFoundException
PropertyNotWritableException
ELException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object