|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.xel.util.DualFunctionMapper
public class DualFunctionMapper
Combine two function mappers into one function mapper.
Constructor Summary | |
---|---|
DualFunctionMapper(FunctionMapper first,
FunctionMapper second)
Constructor. |
Method Summary | |
---|---|
static FunctionMapper |
combine(FunctionMapper first,
FunctionMapper second)
Returns a function mapper by combining two function mappers. |
java.util.Collection<java.lang.String> |
getClassNames()
Returns a readonly collection of the logic names of the class (never null). |
java.lang.Class<?> |
resolveClass(java.lang.String name)
Resolves a class with the specified logic name, or null if not found. |
Function |
resolveFunction(java.lang.String prefix,
java.lang.String name)
Resolves a function Function with the specified name and
prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DualFunctionMapper(FunctionMapper first, FunctionMapper second)
combine(org.zkoss.xel.FunctionMapper, org.zkoss.xel.FunctionMapper)
instead of this method
since it checks whether any of them is null or equals.
Method Detail |
---|
public static final FunctionMapper combine(FunctionMapper first, FunctionMapper second)
public Function resolveFunction(java.lang.String prefix, java.lang.String name)
FunctionMapper
Function
with the specified name and
prefix.
Note: not all EL evaluator support FunctionMapper.resolveFunction(java.lang.String, java.lang.String)
.
Currently only JSP 2.0/2.1 EL-based expression factories
support this method.
You can check ExpressionFactory.isSupported(int)
for this
support.
resolveFunction
in interface FunctionMapper
prefix
- the prefix of the function, or "" if no prefixname
- the name of the function to resolvepublic java.util.Collection<java.lang.String> getClassNames()
FunctionMapperExt
getClassNames
in interface FunctionMapperExt
public java.lang.Class<?> resolveClass(java.lang.String name)
FunctionMapperExt
Note: not all EL evaluator support FunctionMapperExt.resolveClass(java.lang.String)
.
JSP 2.0/2.1 EL-based expression factories don't support
this method.
You can check ExpressionFactory.isSupported(int)
for this
support.
resolveClass
in interface FunctionMapperExt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |