org.apache.myfaces.view.facelets.tag
Interface TagLibrary

All Known Implementing Classes:
AbstractHtmlLibrary, AbstractTagLibrary, CompositeLibrary, CompositeResourceLibrary, CompositeTagLibrary, CoreLibrary, HtmlLibrary, JstlCoreLibrary, JstlFnLibrary, UILibrary

public interface TagLibrary

A library of Tags associated with one or more namespaces.

Version:
$Id: TagLibrary.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom

Method Summary
 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
 

Method Detail

containsNamespace

boolean containsNamespace(String ns)
If this library contains the passed namespace

Parameters:
ns - namespace
Returns:
true if the namespace is used in this library

containsTagHandler

boolean containsTagHandler(String ns,
                           String localName)
If this library contains a TagHandler for the namespace and local name

Parameters:
ns - namespace
localName - local name
Returns:
true if handled by this library

createTagHandler

TagHandler createTagHandler(String ns,
                            String localName,
                            TagConfig tag)
                            throws FacesException
Create a new instance of a TagHandler, using the passed TagConfig

Parameters:
ns - namespace
localName - local name
tag - configuration information
Returns:
a new TagHandler instance
Throws:
FacesException

containsFunction

boolean containsFunction(String ns,
                         String name)
If this library contains the specified function name

Parameters:
ns - namespace
name - function name
Returns:
true if handled

createFunction

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

Parameters:
ns - namespace
name - function name
Returns:


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.