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)
TagLibrary
containsNamespace
in interface TagLibrary
ns
- namespacepublic 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 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 AbstractComponentHandlerAbstractComponentHandler
Copyright © 2020 The Apache Software Foundation. All rights reserved.