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,
javax.faces.view.facelets.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
|
javax.faces.view.facelets.TagHandler |
createTagHandler(String ns,
String localName,
javax.faces.view.facelets.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, javax.faces.view.facelets.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 javax.faces.view.facelets.TagHandler createTagHandler(String ns, String localName, javax.faces.view.facelets.TagConfig tag) throws javax.faces.FacesException
TagLibrary
createTagHandler
in interface TagLibrary
ns
- namespacelocalName
- local nametag
- configuration informationjavax.faces.FacesException
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 © 2010–2021 JBoss by Red Hat. All rights reserved.