Package org.apache.commons.jelly
Class TagLibrary
java.lang.Object
org.apache.commons.jelly.TagLibrary
- Direct Known Subclasses:
CoreTagLibrary,DynamicTagLibrary
Taglib represents the metadata for a Jelly custom tag library.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(ExpressionFactory factory, TagScript tagScript, String attributeName, String attributeValue) Allows taglibs to use their own expression evaluation mechanismcreateTag(String name, Attributes attributes) Creates a new Tag for the given tag name and attributescreateTagScript(String name, Attributes attributes) Creates a new script to execute the given tag name and attributesprotected ExpressionFactoryAllows derived tag libraries to use their own factoryprotected Mapprotected voidregisterTag(String name, Class type) Registers a tag implementation Class for a given tag nameprotected voidregisterTagFactory(String name, TagFactory tagFactory) Registers a tag factory for a given tag name
-
Constructor Details
-
TagLibrary
public TagLibrary()
-
-
Method Details
-
createTagScript
Creates a new script to execute the given tag name and attributes- Throws:
JellyException
-
createTag
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
Registers a tag implementation Class for a given tag name -
registerTagFactory
Registers a tag factory for a given tag name -
getExpressionFactory
Allows derived tag libraries to use their own factory -
getTagClasses
-