public class ValidationMessagesELResolver extends ELResolver
ValidationMessages
. It doesn't handle vmsgs.texts[...]. To use vmsgs.texts[...] you could use
org.zkoss.zkmax.bind.impl.ValidationMessageELResolver
Modifier and Type | Class and Description |
---|---|
protected static class |
ValidationMessagesELResolver.AbstractValueResolver |
protected static interface |
ValidationMessagesELResolver.ValueResolver |
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
ValidationMessagesELResolver() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getCommonPropertyType(ELContext context,
java.lang.Object base) |
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base) |
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) |
protected java.lang.Object |
handleTexts(ValidationMessages base,
int numOfKids) |
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) |
convertToType, invoke
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
getValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be returnedjava.lang.NullPointerException
- If the supplied context is null
PropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was found or a
match was found but was not readableELException
- Wraps any exception throw whilst resolving the propertypublic java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
getType
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose type is to be returnedjava.lang.NullPointerException
- If the supplied context is null
PropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was found or a
match was found but was not readableELException
- Wraps any exception throw whilst resolving the propertypublic void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value) throws java.lang.NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException
setValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be setvalue
- The value to set the property tojava.lang.NullPointerException
- If the supplied context is null
PropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was foundPropertyNotWritableException
- If the base/property combination provided to the resolver is
one that the resolver can handle but the property was not
writableELException
- Wraps any exception throw whilst resolving the propertypublic boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
isReadOnly
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property to be checked for read only statustrue
if the identified property is read only,
otherwise false
java.lang.NullPointerException
- If the supplied context is null
PropertyNotFoundException
- If the base/property combination provided to the resolver is
one that the resolver can handle but no match was foundELException
- Wraps any exception throw whilst resolving the propertypublic java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
public java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType
in class ELResolver
protected java.lang.Object handleTexts(ValidationMessages base, int numOfKids)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.