org.apache.myfaces.extensions.validator.core.el
Class ExtValELResolver
java.lang.Object
javax.el.ELResolver
org.apache.myfaces.extensions.validator.core.el.ExtValELResolver
public class ExtValELResolver
- extends javax.el.ELResolver
- Since:
- 1.x.1
- Author:
- Gerhard Petracek
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Fields inherited from class javax.el.ELResolver |
RESOLVABLE_AT_DESIGN_TIME, TYPE |
Method Summary |
static javax.el.ELContext |
createContextWrapper(javax.el.ELContext context,
javax.el.ELResolver resolver)
|
java.lang.Object |
getBaseObject()
|
java.lang.Class<?> |
getCommonPropertyType(javax.el.ELContext elContext,
java.lang.Object o)
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(javax.el.ELContext elContext,
java.lang.Object o)
|
java.lang.String |
getPath()
|
java.lang.String |
getProperty()
|
java.lang.Class<?> |
getType(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1)
|
java.lang.Object |
getValue(javax.el.ELContext elContext,
java.lang.Object base,
java.lang.Object property)
path recording is performed to get a key for cross-validation
every base after the first call which is null stops recording
with a dynamic map syntax the last property in the middle of an expression has to be a string. |
boolean |
isReadOnly(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1)
|
void |
reset()
|
void |
setValue(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1,
java.lang.Object o2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
ExtValELResolver
public ExtValELResolver(javax.el.ELResolver elResolver)
getBaseObject
public java.lang.Object getBaseObject()
getProperty
public java.lang.String getProperty()
getPath
public java.lang.String getPath()
reset
public void reset()
getValue
public java.lang.Object getValue(javax.el.ELContext elContext,
java.lang.Object base,
java.lang.Object property)
- path recording is performed to get a key for cross-validation
every base after the first call which is null stops recording
with a dynamic map syntax the last property in the middle of an expression has to be a string.
such a string result continues the path recording at the next call for the current expression.
example: #{bean[bean.propertyNameProvider['nameOfProperty1']]['dynBean'].property}
limitation for cross-validation: nameOfProperty1 has to be of type string.
other key types aren't supported yet
- Specified by:
getValue
in class javax.el.ELResolver
- Parameters:
elContext
- wrapped el-contextbase
- current baseproperty
- property to resolve
- Returns:
- result of the delegated method call
getType
public java.lang.Class<?> getType(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1)
- Specified by:
getType
in class javax.el.ELResolver
setValue
public void setValue(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1,
java.lang.Object o2)
- Specified by:
setValue
in class javax.el.ELResolver
isReadOnly
public boolean isReadOnly(javax.el.ELContext elContext,
java.lang.Object o,
java.lang.Object o1)
- Specified by:
isReadOnly
in class javax.el.ELResolver
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext elContext,
java.lang.Object o)
- Specified by:
getFeatureDescriptors
in class javax.el.ELResolver
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(javax.el.ELContext elContext,
java.lang.Object o)
- Specified by:
getCommonPropertyType
in class javax.el.ELResolver
createContextWrapper
public static javax.el.ELContext createContextWrapper(javax.el.ELContext context,
javax.el.ELResolver resolver)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.