|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.xel.util.TaglibMapper org.zkoss.xel.util.SimpleMapper
public class SimpleMapper
A simple function mapper.
Field Summary |
---|
Fields inherited from class org.zkoss.xel.util.TaglibMapper |
---|
_clses, _mtds |
Constructor Summary | |
---|---|
SimpleMapper()
|
|
SimpleMapper(FunctionMapper parent)
|
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getClassNames()
Returns a readonly collection of the logic names of the class (never null). |
FunctionMapper |
getParent()
Returns the parent mapper, or null if no parent. |
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. |
void |
setParent(FunctionMapper parent)
Sets the parent mapper. |
Methods inherited from class org.zkoss.xel.util.TaglibMapper |
---|
addClass, addFunction, clone, equals, hashCode, load, load, load, load |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMapper()
public SimpleMapper(FunctionMapper parent)
Method Detail |
---|
public FunctionMapper getParent()
public void setParent(FunctionMapper parent)
parent
- the parent mapper, or null if no parent.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
resolveFunction
in class TaglibMapper
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
getClassNames
in class TaglibMapper
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
resolveClass
in class TaglibMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |