Top Description Inners Fields Constructors Methods
com.sun.faces.facelets.tag

public abstract Class AbstractTagLibrary

extends Object
implements TagLibrary
Class Inheritance
All Implemented Interfaces
com.sun.faces.facelets.tag.TagLibrary
Known Direct Subclasses
com.sun.faces.facelets.tag.TagLibraryImpl, com.sun.faces.facelets.tag.composite.CompositeLibrary, com.sun.faces.facelets.tag.jsf.PassThroughAttributeLibrary, com.sun.faces.facelets.tag.jsf.PassThroughElementLibrary, com.sun.faces.facelets.tag.jsf.core.CoreLibrary, com.sun.faces.facelets.tag.jsf.html.AbstractHtmlLibrary, com.sun.faces.facelets.tag.jstl.core.JstlCoreLibrary, com.sun.faces.facelets.tag.ui.UILibrary
Imports
com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler, javax.el.ELException, javax.faces.FacesException, javax.faces.view.facelets.*, java.lang.reflect.Constructor, .InvocationTargetException, .Method, java.net.URL, java.util.HashMap, .Map, javax.faces.application.Resource, .ResourceHandler, javax.faces.context.FacesContext, javax.faces.view.Location

Base class for defining TagLibraries in Java
Author
Jacob Hookom

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
protected static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final Map<K, V>
private final Map<K, V>
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected final void
addBehavior(String name, String behaviorId)

protected final void
addBehavior(String name, String behaviorId, Class<T> type)

protected final void
addComponent(String
name to use, "foo" would be <my:foo />
name
,
String
componentType to use
componentType
,
String
rendererType to use
rendererType
)

Add a ComponentHandlerImpl with the specified componentType and rendererType, aliased by the tag name.

protected final void
addComponent(String
name to use, "foo" would be <my:foo />
name
,
String
componentType to use
componentType
,
String
rendererType to use
rendererType
,
Class<T>
a Class that extends ComponentHandler
handlerType
)

Add a ComponentHandlerImpl with the specified componentType and rendererType, aliased by the tag name.

protected final void
addCompositeComponentTag(String
name to use, "foo" would be <my:foo />
name
,
String
source where the Facelet (Tag) source is
resourceId
)

Add a CompositeComponentTagHandler for the specified resource.

protected final void
addConverter(String
name to use, "foo" would be <my:foo />
name
,
String
id to pass to Application instance
converterId
)

Add a ConverterHandler for the specified converterId

protected final void
addConverter(String
name to use, "foo" would be <my:foo />
name
,
String
id to pass to Application instance
converterId
,
Class<T>
TagHandler type that takes in a ConverterConfig
type
)

Add a ConverterHandler for the specified converterId of a TagHandler type

protected final void
addFunction(String
(suffix) of function name
name
,
Method
method instance
method
)

Add a Method to be used as a Function at Compilation.

protected final void
addTagHandler(String
name to use, "foo" would be <my:foo />
name
,
Class<T>
must extend TagHandler
handlerType
)

Use the specified HandlerType in compiling Facelets.

protected final void
addUserTag(String
name to use, "foo" would be <my:foo />
name
,
URL
source where the Facelet (Tag) source is
source
)

Add a UserTagHandler specified a the URL source.

protected final void
addValidator(String
name to use, "foo" would be <my:foo />
name
,
String
id to pass to Application instance
validatorId
)

Add a ValidatorHandler for the specified validatorId

protected final void
addValidator(String
name to use, "foo" would be <my:foo />
name
,
String
id to pass to Application instance
validatorId
,
Class<T>
TagHandler type that takes in a ValidatorConfig
type
)

Add a ValidatorHandler for the specified validatorId

public boolean
containsFunction(String
namespace
ns
,
String
function name
name
)

Implements com.sun.faces.facelets.tag.TagLibrary.containsFunction.

If this library contains the specified function name
public boolean
containsNamespace(String
namespace
ns
,
Tag
the tag instance currently active at the time this method is called. May be null
t
)

Implements com.sun.faces.facelets.tag.TagLibrary.containsNamespace.

true if the namespace is used in this library
public boolean
containsTagHandler(String
namespace
ns
,
String
local name
localName
)

Implements com.sun.faces.facelets.tag.TagLibrary.containsTagHandler.

If this library contains a TagHandler for the namespace and local name true if handled by this library
public Method
createFunction(String
namespace
ns
,
String
function name
name
)

Implements com.sun.faces.facelets.tag.TagLibrary.createFunction.

Return a Method instance for the passed namespace and name
public TagHandler
createTagHandler(String
namespace
ns
,
String
local name
localName
,
TagConfig
configuration information
tag
)

Implements com.sun.faces.facelets.tag.TagLibrary.createTagHandler.

Create a new instance of a TagHandler, using the passed TagConfig
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public String
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait