public class ImportELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
ImportELResolver() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<java.lang.String> |
getCommonPropertyType(ELContext context,
java.lang.Object base)
Always returns
null since in normal usage ScopedAttributeELResolver will handle calls to
ELResolver.getCommonPropertyType(ELContext, Object) . |
java.lang.Class<java.lang.Object> |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
Always returns
null since in normal usage ScopedAttributeELResolver will handle calls to
ELResolver.getType(ELContext, Object, Object) . |
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
If the base object is
null , searches the Class and static imports for an import with the given name
and returns it if an import exists with the given name. |
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
Always returns
false since in normal usage ScopedAttributeELResolver will handle calls to
ELResolver.isReadOnly(ELContext, Object, Object) . |
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object val)
Always a NO-OP since in normal usage
ScopedAttributeELResolver will handle calls to
ELResolver.setValue(ELContext, Object, Object, Object) . |
convertToType, getFeatureDescriptors, invoke
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
null
, searches the Class and static imports for an import with the given name
and returns it if an import exists with the given name.
The propertyResolved
property of the ELContext
object must be set to true
by this resolver before returning if an import is matched. If this property is not true
after this
method is called, the caller should ignore the return value.
getValue
in class ELResolver
context
- The context of this evaluation.base
- Only null
is handled by this resolver. Other values will result in an immediate
return.property
- The name of the import to resolve.propertyResolved
property of ELContext
was set to true
,
then the import; otherwise undefined.java.lang.NullPointerException
- if context is null
ELException
- if an exception was thrown while performing the property or variable resolution. The
thrown exception must be included as the cause property of this exception, if
available.public java.lang.Class<java.lang.Object> getType(ELContext context, java.lang.Object base, java.lang.Object property)
null
since in normal usage ScopedAttributeELResolver
will handle calls to
ELResolver.getType(ELContext, Object, Object)
.getType
in class ELResolver
context
- The context of this evaluation.base
- Ignoredproperty
- Ignorednull
java.lang.NullPointerException
- if context is null
ELException
- if an exception was thrown while performing the property or variable resolution. The
thrown exception must be included as the cause property of this exception, if
available.public void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object val)
ScopedAttributeELResolver
will handle calls to
ELResolver.setValue(ELContext, Object, Object, Object)
.setValue
in class ELResolver
context
- The context of this evaluation.base
- Ignoredproperty
- Ignoredval
- Ignoredjava.lang.NullPointerException
- if context is null
.ELException
- if an exception was thrown while performing the property or variable resolution. The
thrown exception must be included as the cause property of this exception, if
available.public boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
false
since in normal usage ScopedAttributeELResolver
will handle calls to
ELResolver.isReadOnly(ELContext, Object, Object)
.isReadOnly
in class ELResolver
context
- The context of this evaluation.base
- Ignoredproperty
- Ignoredfalse
java.lang.NullPointerException
- if context is null
.ELException
- if an exception was thrown while performing the property or variable resolution. The
thrown exception must be included as the cause property of this exception, if
available.public java.lang.Class<java.lang.String> getCommonPropertyType(ELContext context, java.lang.Object base)
null
since in normal usage ScopedAttributeELResolver
will handle calls to
ELResolver.getCommonPropertyType(ELContext, Object)
.getCommonPropertyType
in class ELResolver
context
- Ignoredbase
- Ignorednull