Top Description Methods
com.sun.faces.facelets.tag

public Interface TagLibrary

Known Direct Implementers
com.sun.faces.facelets.util.FunctionLibrary, com.sun.faces.facelets.tag.AbstractTagLibrary, com.sun.faces.facelets.tag.CompositeTagLibrary
Imports
java.lang.reflect.Method, jakarta.faces.FacesException, jakarta.faces.view.facelets.Tag, .TagConfig, .TagHandler

A library of Tags associated with one or more namespaces.
Author
Jacob Hookom
Version
$Id$

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if handled
containsFunction
(String
namespace
ns
,
String
function name
name
)

If this library contains the specified function name

public boolean

Returns:

whether the namespace is used in this library
containsNamespace
(String
namespace
ns
,
Tag
the tag instance currently active at the time this method is called. May be null
t
)

true if the namespace is used in this library

public boolean

Returns:

whether handled by this library
containsTagHandler
(String
namespace
ns
,
String
local name
localName
)

If this library contains a TagHandler for the namespace and local name true if handled by this library

public Method

Returns:

a Method instance for the passed namespace and name
createFunction
(String
namespace
ns
,
String
function name
name
)

Return a Method instance for the passed namespace and name

public TagHandler

Returns:

a new TagHandler instance
createTagHandler
(String
namespace
ns
,
String
local name
localName
,
TagConfig
configuration information
tag
)

Create a new instance of a TagHandler, using the passed TagConfig

Method Detail

containsFunctionback to summary
public boolean containsFunction(String ns, String name)

If this library contains the specified function name

Parameters
ns:String

namespace

name:String

function name

Returns:boolean

true if handled

containsNamespaceback to summary
public boolean containsNamespace(String ns, Tag t)

true if the namespace is used in this library

Parameters
ns:String

namespace

t:Tag

the tag instance currently active at the time this method is called. May be null

Returns:boolean

whether the namespace is used in this library

containsTagHandlerback to summary
public boolean containsTagHandler(String ns, String localName)

If this library contains a TagHandler for the namespace and local name true if handled by this library

Parameters
ns:String

namespace

localName:String

local name

Returns:boolean

whether handled by this library

createFunctionback to summary
public Method createFunction(String ns, String name)

Return a Method instance for the passed namespace and name

Parameters
ns:String

namespace

name:String

function name

Returns:Method

a Method instance for the passed namespace and name

createTagHandlerback to summary
public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException

Create a new instance of a TagHandler, using the passed TagConfig

Parameters
ns:String

namespace

localName:String

local name

tag:TagConfig

configuration information

Returns:TagHandler

a new TagHandler instance

Exceptions
FacesException:
when a Faces exception occurs