public class DualFunctionMapper extends Object implements FunctionMapper, FunctionMapperExt, Serializable
| Constructor and Description |
|---|
DualFunctionMapper(FunctionMapper first,
FunctionMapper second)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionMapper |
combine(FunctionMapper first,
FunctionMapper second)
Returns a function mapper by combining two function mappers.
|
Collection<String> |
getClassNames()
Returns a readonly collection of the logic names of the class
(never null).
|
Class<?> |
resolveClass(String name)
Resolves a class with the specified logic name,
or null if not found.
|
Function |
resolveFunction(String prefix,
String name)
Resolves a function
Function with the specified name and
prefix. |
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.public static final FunctionMapper combine(FunctionMapper first, FunctionMapper second)
public Function resolveFunction(String prefix, String name)
FunctionMapperFunction 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 FunctionMapperprefix - the prefix of the function, or "" if no prefixname - the name of the function to resolvepublic Collection<String> getClassNames()
FunctionMapperExtgetClassNames in interface FunctionMapperExtpublic Class<?> resolveClass(String name)
FunctionMapperExtNote: 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 FunctionMapperExtCopyright © 2018. All rights reserved.