public class ScopedAttributeELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
ScopedAttributeELResolver() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<java.lang.String> |
getCommonPropertyType(ELContext context,
java.lang.Object base)
Returns String.class if the base argument is null.
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base)
If the base argument is null, returns an iterator of
FeatureDescriptors containing information about each scoped attribute
in the context.
|
java.lang.Class |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
If the base argument is null, returns Object.class, otherwise returns
null.
|
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
If the base object is null, returns the value of the specified
attribute within the context.
|
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
Scoped attributes are not read only, so returns false.
|
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
If the base argument is null, sets the specified attribute in the
context to the specified value.
|
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
getValue
in class ELResolver
context
- the evaluation contextbase
- the target of the operationproperty
- the property of the base objectpublic java.lang.Class getType(ELContext context, java.lang.Object base, java.lang.Object property)
getType
in class ELResolver
context
- the evaluation contextbase
- the target of the operationproperty
- the property of the base objectpublic void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
setValue
in class ELResolver
context
- the evaluation contextbase
- the target of the operationproperty
- the property of the base objectvalue
- the new value of the propertypublic boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
isReadOnly
in class ELResolver
context
- the evaluation contextbase
- the target of the operationproperty
- the property of the base objectpublic java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
context
- the evaluation contextbase
- the target of the operationpublic java.lang.Class<java.lang.String> getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType
in class ELResolver
context
- the evaluation contextbase
- the target of the operation