|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.javax.el.ELResolver
org.activiti.engine.impl.javax.el.ResourceBundleELResolver
public class ResourceBundleELResolver
Defines property resolution behavior on instances of java.util.ResourceBundle. This resolver
handles base objects of type java.util.ResourceBundle. It accepts any object as a property and
coerces it to a java.lang.String for invoking java.util.ResourceBundle.getObject(String). This
resolver is read only and will throw a PropertyNotWritableException
if setValue is
called. ELResolvers are combined together using CompositeELResolver
s, to define rich
semantics for evaluating an expression. See the javadocs for ELResolver
for details.
字段摘要 |
---|
从类 org.activiti.engine.impl.javax.el.ELResolver 继承的字段 |
---|
RESOLVABLE_AT_DESIGN_TIME, TYPE |
构造方法摘要 | |
---|---|
ResourceBundleELResolver()
|
方法摘要 | |
---|---|
Class<?> |
getCommonPropertyType(ELContext context,
Object base)
If the base object is a ResourceBundle, returns the most general type that this resolver accepts for the property argument. |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
Object base)
If the base object is a ResourceBundle, returns an Iterator containing the set of keys available in the ResourceBundle. |
Class<?> |
getType(ELContext context,
Object base,
Object property)
If the base object is an instance of ResourceBundle, return null, since the resolver is read only. |
Object |
getValue(ELContext context,
Object base,
Object property)
If the base object is an instance of ResourceBundle, the provided property will first be coerced to a String. |
boolean |
isReadOnly(ELContext context,
Object base,
Object property)
If the base object is not null and an instanceof java.util.ResourceBundle, return true. |
void |
setValue(ELContext context,
Object base,
Object property,
Object value)
If the base object is a ResourceBundle, throw a PropertyNotWritableException . |
从类 org.activiti.engine.impl.javax.el.ELResolver 继承的方法 |
---|
invoke |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public ResourceBundleELResolver()
方法详细信息 |
---|
public Class<?> getCommonPropertyType(ELContext context, Object base)
ELResolver
中的 getCommonPropertyType
context
- The context of this evaluation.base
- The bundle to analyze. Only bases of type ResourceBundle are handled by this
resolver.
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
ELResolver.TYPE
- String.class.ELResolver.RESOLVABLE_AT_DESIGN_TIME
- true
ELResolver
中的 getFeatureDescriptors
context
- The context of this evaluation.base
- The bundle to analyze. Only bases of type ResourceBundle are handled by this
resolver.
public Class<?> getType(ELContext context, Object base, Object property)
ELResolver
中的 getType
context
- The context of this evaluation.base
- The bundle to analyze. Only bases of type ResourceBundle are handled by this
resolver.property
- The name of the property to analyze.
NullPointerException
- if context is nullpublic Object getValue(ELContext context, Object base, Object property)
ELResolver
中的 getValue
context
- The context of this evaluation.base
- The bundle to analyze. Only bases of type ResourceBundle are handled by this
resolver.property
- The name of the property to analyze. Will be coerced to a String.
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, Object base, Object property)
ELResolver
中的 isReadOnly
context
- The context of this evaluation.base
- The base object whose property value is to be analyzed, or null to analyze a
top-level variable.property
- The property or variable to return the read-only status for.
NullPointerException
- if context is null.public void setValue(ELContext context, Object base, Object property, Object value)
PropertyNotWritableException
.
ELResolver
中的 setValue
context
- The context of this evaluation.base
- The bundle to analyze. Only bases of type ResourceBundle are handled by this
resolver.property
- The name of the property to analyze. Will be coerced to a String.value
- The value to be set.
NullPointerException
- if context is null.
PropertyNotWritableException
- Always thrown if base is an instance of ResourceBundle.
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |