public class ComponentTagDeclarationLibrary extends Object implements TagLibrary
| Constructor and Description |
|---|
ComponentTagDeclarationLibrary() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(String namespace,
String name,
String componentType,
String rendererType)
Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name.
|
void |
addComponent(String namespace,
String name,
String componentType,
String rendererType,
Class<? extends TagHandler> handlerType)
Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name.
|
boolean |
containsFunction(String ns,
String name)
If this library contains the specified function name
|
boolean |
containsNamespace(String ns)
If this library contains the passed namespace
|
boolean |
containsTagHandler(String ns,
String localName)
If this library contains a TagHandler for the namespace and local name
|
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 boolean containsNamespace(String ns)
TagLibrarycontainsNamespace in interface TagLibraryns - namespacepublic 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 namepublic final void addComponent(String namespace, String name, String componentType, String rendererType)
name - name to use, "foo" would be <my:foo />componentType - componentType to userendererType - rendererType to useComponentHandler,
Application.createComponent(java.lang.String)public final void addComponent(String namespace, String name, String componentType, String rendererType, Class<? extends TagHandler> handlerType)
name - name to use, "foo" would be <my:foo />componentType - componentType to userendererType - rendererType to usehandlerType - a Class that extends AbstractComponentHandlerAbstractComponentHandlerCopyright © 2022 The Apache Software Foundation. All rights reserved.