org.zkoss.el
Class SimpleMapper

java.lang.Object
  extended by org.zkoss.el.SimpleMapper
All Implemented Interfaces:
FunctionMapper

public class SimpleMapper
extends java.lang.Object
implements FunctionMapper

A simple function mapper.

Author:
tomyeh

Constructor Summary
SimpleMapper()
           
SimpleMapper(FunctionMapper parent)
           
 
Method Summary
 java.util.Collection getClassNames()
          Returns a readonly collection of the logic names of the class (never null).
 void load(java.lang.String prefix, Element root)
          Loads function definitions from DOM.
 void load(java.lang.String prefix, java.lang.String uri, Locator locator)
          Loads function definitions from taglib.
 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

SimpleMapper

public SimpleMapper()

SimpleMapper

public SimpleMapper(FunctionMapper parent)
Method Detail

load

public void load(java.lang.String prefix,
                 java.lang.String uri,
                 Locator locator)
          throws XelException,
                 java.io.IOException
Loads function definitions from taglib.

Throws:
XelException
java.io.IOException

load

public void load(java.lang.String prefix,
                 Element root)
          throws XelException,
                 java.io.IOException
Loads function definitions from DOM.

Throws:
XelException
java.io.IOException

resolveFunction

public Function resolveFunction(java.lang.String prefix,
                                java.lang.String name)
Description copied from interface: FunctionMapper
Resolves a function Function with the specified name and prefix.

Specified by:
resolveFunction in interface FunctionMapper
Parameters:
prefix - the prefix of the function, or "" if no prefix
name - the name of the function to resolve

getClassNames

public java.util.Collection getClassNames()
Description copied from interface: FunctionMapper
Returns a readonly collection of the logic names of the class (never null).

It is used only with ZK 3.0 and later. It is not used in ZK 2.4.x.

Specified by:
getClassNames in interface FunctionMapper

resolveClass

public java.lang.Class resolveClass(java.lang.String name)
                             throws XelException
Description copied from interface: FunctionMapper
Resolves a class with the specified logic name, or null if not found.

It is used only with ZK 3.0 and later. It is not used in ZK 2.4.x.

Specified by:
resolveClass in interface FunctionMapper
Throws:
XelException


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