org.zkoss.el
Class FunctionMappers

java.lang.Object
  extended by org.zkoss.el.FunctionMappers

public class FunctionMappers
extends java.lang.Object

Utilities for handling FunctionMapper.

Author:
tomyeh

Field Summary
static FunctionMapper EMPTY_MAPPER
          An empty function mapper, i.e., it has no function defined at all.
 
Method Summary
static FunctionMapper getFunctionMapper(java.util.List taglibs, Locator loc)
          Retursn the function mapper representing a list of Taglib, or null if taglibs is null or empty.
static java.util.Map loadMethods(Element root)
          Loads functions defined in the specified DOM.
static java.util.Map loadMethods(java.net.URL xmlUrl)
          Loads functions defined in the specified URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_MAPPER

public static final FunctionMapper EMPTY_MAPPER
An empty function mapper, i.e., it has no function defined at all.

Method Detail

getFunctionMapper

public static final FunctionMapper getFunctionMapper(java.util.List taglibs,
                                                     Locator loc)
Retursn the function mapper representing a list of Taglib, or null if taglibs is null or empty.

The returned mapper is serializable.

Parameters:
loc - the locator used to load taglib

loadMethods

public static final java.util.Map loadMethods(java.net.URL xmlUrl)
                                       throws java.lang.Exception
Loads functions defined in the specified URL.

Returns:
a map of function: (String name, Method mtd).
Throws:
java.lang.Exception

loadMethods

public static final java.util.Map loadMethods(Element root)
                                       throws java.lang.Exception
Loads functions defined in the specified DOM.

Returns:
a map of function: (String name, Method mtd).
Throws:
java.lang.Exception


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.