public class FunctionLibrary extends Object implements TagLibrary
This TagLibrary
exposes the public static
methods defined on the functionsClass
provided to the constructor
as EL functions.
Modifier and Type | Field and Description |
---|---|
static String |
Namespace |
static String |
XMLNSNamespace |
Constructor and Description |
---|
FunctionLibrary(Class<?> functionsClass,
String namespace) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsFunction(String ns,
String name)
If this library contains the specified function name
|
boolean |
containsNamespace(String ns,
Tag t)
true if the namespace is used in this library
|
boolean |
containsTagHandler(String ns,
String localName)
If this library contains a TagHandler for the namespace and local name true if handled by this library
|
Method |
createFunction(String ns,
String name)
Return a Method instance for the passed namespace and name
|
TagHandler |
createTagHandler(String ns,
String localName,
TagConfig tag)
Create a new instance of a TagHandler, using the passed TagConfig
|
public static final String Namespace
public static final String XMLNSNamespace
public boolean containsNamespace(String ns, Tag t)
TagLibrary
containsNamespace
in interface TagLibrary
ns
- namespacet
- the tag instance currently active at the time
this method is called. May be nullpublic boolean containsTagHandler(String ns, String localName)
TagLibrary
containsTagHandler
in interface TagLibrary
ns
- namespacelocalName
- local namepublic TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException
TagLibrary
createTagHandler
in interface TagLibrary
ns
- namespacelocalName
- local nametag
- configuration informationFacesException
public boolean containsFunction(String ns, String name)
TagLibrary
containsFunction
in interface TagLibrary
ns
- namespacename
- function namepublic Method createFunction(String ns, String name)
TagLibrary
createFunction
in interface TagLibrary
ns
- namespacename
- function nameCopyright © 1997–2019 Eclipse Foundation. All rights reserved.