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)
TagLibrarycontainsNamespace in interface TagLibraryns - namespacet - the tag instance currently active at the time
this method is called. May be nullpublic boolean containsTagHandler(String ns, String localName)
TagLibrarycontainsTagHandler in interface TagLibraryns - namespacelocalName - local namepublic TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException
TagLibrarycreateTagHandler in interface TagLibraryns - namespacelocalName - local nametag - configuration informationFacesExceptionpublic boolean containsFunction(String ns, String name)
TagLibrarycontainsFunction in interface TagLibraryns - namespacename - function namepublic Method createFunction(String ns, String name)
TagLibrarycreateFunction in interface TagLibraryns - namespacename - function nameComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.