|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.xel.taglib.Taglibs
public class Taglibs
Utilities to handle taglib.
Constructor Summary | |
---|---|
Taglibs()
|
Method Summary | |
---|---|
static java.net.URL |
getDefaultURL(java.lang.String uri)
Returns the URL associated with the specified taglib URI, or null if not found. |
static FunctionMapper |
getFunctionMapper(java.util.Collection taglibs,
Locator loc)
Retursn the function mapper representing a collection of Taglib ,
or null if nothin is loaded. |
static FunctionMapper |
getFunctionMapper(java.util.Collection taglibs,
java.util.Map imports,
java.util.Collection funcs,
Locator loc)
Retursn the function mapper representing a collection of Taglib ,
imports and functions, or null if nothing is loaded. |
static FunctionMapper |
getFunctionMapper(java.util.Collection taglibs,
java.util.Map imports,
Locator loc)
Retursn the function mapper representing a collection of Taglib
and imports, or null if nothing is loaded. |
static FunctionMapper |
getFunctionMapper(java.util.List taglibs,
Locator loc)
Retursn the function mapper representing a list of Taglib ,
or null if nothin is loaded. |
static FunctionMapper |
getFunctionMapper(java.util.List taglibs,
java.util.Map imports,
java.util.List funcs,
Locator loc)
Retursn the function mapper representing a list of Taglib ,
imports and functions, or null if nothing is loaded. |
static FunctionMapper |
getFunctionMapper(java.util.List taglibs,
java.util.Map imports,
Locator loc)
Retursn the function mapper representing a list of Taglib
and imports, or null if nothing is loaded. |
static java.util.Map[] |
load(Element root)
Loads functions and imports defined in the specified DOM. |
static java.util.Map[] |
load(java.net.URL xmlURL)
Loads functions and imports defined in the specified URL. |
static java.util.Map |
loadFunctions(Element root)
Loads functions defined in the specified DOM. |
static java.util.Map |
loadFunctions(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 |
Constructor Detail |
---|
public Taglibs()
Method Detail |
---|
public static final FunctionMapper getFunctionMapper(java.util.List taglibs, java.util.Map imports, Locator loc)
Taglib
and imports, or null if nothing is loaded.
The returned mapper is serializable.
taglibs
- a list of Taglib
.imports
- a map of imported classes, Map<String nm, Class cls>
Note: imports has the higher priority than import classes defined
in taglibs.loc
- the locator used to load taglibpublic static final FunctionMapper getFunctionMapper(java.util.Collection taglibs, java.util.Map imports, Locator loc)
Taglib
and imports, or null if nothing is loaded.
The returned mapper is serializable.
taglibs
- a collection of Taglib
.imports
- a map of imported classes, Map<String nm, Class cls>
Note: imports has the higher priority than import classes defined
in taglibs.loc
- the locator used to load taglibpublic static final FunctionMapper getFunctionMapper(java.util.List taglibs, java.util.Map imports, java.util.List funcs, Locator loc)
Taglib
,
imports and functions, or null if nothing is loaded.
The returned mapper is serializable.
taglibs
- a list of Taglib
.imports
- a map of imported classes, Map<String nm, Class cls>.
Ignored if null.
Note: imports has the higher priority than import classes defined
in taglibs.funcs
- a list of three-element arrays,
Map<String prefix, String name, Function func]>.
Ignored if null.loc
- the locator used to load taglibpublic static final FunctionMapper getFunctionMapper(java.util.Collection taglibs, java.util.Map imports, java.util.Collection funcs, Locator loc)
Taglib
,
imports and functions, or null if nothing is loaded.
The returned mapper is serializable.
taglibs
- a collection of Taglib
.imports
- a map of imported classes, Map<String nm, Class cls>.
Ignored if null.
Note: imports has the higher priority than import classes defined
in taglibs.funcs
- a collection of three-element arrays,
Map<String prefix, String name, Function func]>.
Ignored if null.loc
- the locator used to load taglibpublic static final FunctionMapper getFunctionMapper(java.util.List taglibs, Locator loc)
Taglib
,
or null if nothin is loaded.
The returned mapper is serializable.
taglibs
- a list of Taglib
.loc
- the locator used to load taglibpublic static final FunctionMapper getFunctionMapper(java.util.Collection taglibs, Locator loc)
Taglib
,
or null if nothin is loaded.
The returned mapper is serializable.
taglibs
- a collection of Taglib
.loc
- the locator used to load taglibpublic static final java.util.Map loadFunctions(java.net.URL xmlURL) throws java.lang.Exception
Note: this method will cache the result, so next invocation with the same xmlURL will read directly from the cache.
java.lang.Exception
public static final java.util.Map loadFunctions(Element root) throws java.lang.Exception
Unlike loadFunctions(URL)
, this method
doesn't use cache.
java.lang.Exception
public static final java.util.Map[] load(java.net.URL xmlURL) throws java.lang.Exception
Note: this method will cache the result, so next invocation with the same xmlURL will read directly from the cache.
java.lang.Exception
public static final java.util.Map[] load(Element root) throws java.lang.Exception
Unlike loadFunctions(URL)
, this method
doesn't use cache.
java.lang.Exception
public static final java.net.URL getDefaultURL(java.lang.String uri)
uri
- the URI of taglib that are defined as
the taglib-uri element in the /metainfo/tld/config.xml file.
Both config.xml and TLD files must be locatable by the class
loader (i.e., must be part of class path).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |