org.zkoss.xel
Interface FunctionMapper

All Known Implementing Classes:
DualFunctionMapper, SimpleMapper, TaglibMapper

public interface FunctionMapper

Used to customize the way to map between the XEL function names and the Function methods.

Since:
3.0.0
Author:
tomyeh

Method Summary
 java.util.Collection 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.
 

Method Detail

resolveFunction

Function resolveFunction(java.lang.String prefix,
                         java.lang.String name)
                         throws XelException
Resolves a function Function with the specified name and prefix.

Note: not all EL evaluator support 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.

Parameters:
prefix - the prefix of the function, or "" if no prefix
name - the name of the function to resolve
Throws:
XelException

getClassNames

java.util.Collection getClassNames()
Returns a readonly collection of the logic names of the class (never null). Note: it is the name to resolve class, not the real class name. In other words, it is the logical name maintained by this function mapper.


resolveClass

java.lang.Class resolveClass(java.lang.String name)
                             throws XelException
Resolves a class with the specified logic name, or null if not found.

Note: not all EL evaluator support 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.

Returns:
the class of the specified logic name.
Throws:
XelException


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo