Package org.apache.commons.jelly
Class TagLibrary
- java.lang.Object
-
- org.apache.commons.jelly.TagLibrary
-
- Direct Known Subclasses:
CoreTagLibrary
,DynamicTagLibrary
public abstract class TagLibrary extends Object
Taglib
represents the metadata for a Jelly custom tag library.- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
-
Constructor Summary
Constructors Constructor Description TagLibrary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
createExpression(ExpressionFactory factory, TagScript tagScript, String attributeName, String attributeValue)
Allows taglibs to use their own expression evaluation mechanismTag
createTag(String name, Attributes attributes)
Creates a new Tag for the given tag name and attributesTagScript
createTagScript(String name, Attributes attributes)
Creates a new script to execute the given tag name and attributesprotected ExpressionFactory
getExpressionFactory()
Allows derived tag libraries to use their own factoryprotected Map
getTagClasses()
protected void
registerTag(String name, Class type)
Registers a tag implementation Class for a given tag nameprotected void
registerTagFactory(String name, TagFactory tagFactory)
Registers a tag factory for a given tag name
-
-
-
Method Detail
-
createTagScript
public TagScript createTagScript(String name, Attributes attributes) throws JellyException
Creates a new script to execute the given tag name and attributes- Throws:
JellyException
-
createTag
public Tag createTag(String name, Attributes attributes) throws JellyException
Creates a new Tag for the given tag name and attributes- Throws:
JellyException
-
createExpression
public Expression createExpression(ExpressionFactory factory, TagScript tagScript, String attributeName, String attributeValue) throws JellyException
Allows taglibs to use their own expression evaluation mechanism- Throws:
JellyException
-
registerTag
protected void registerTag(String name, Class type)
Registers a tag implementation Class for a given tag name
-
registerTagFactory
protected void registerTagFactory(String name, TagFactory tagFactory)
Registers a tag factory for a given tag name
-
getExpressionFactory
protected ExpressionFactory getExpressionFactory()
Allows derived tag libraries to use their own factory
-
getTagClasses
protected Map getTagClasses()
-
-