org.apache.commons.jelly.tags.define
Class DynamicTagLibrary
java.lang.Object
|
+--org.apache.commons.jelly.TagLibrary
|
+--org.apache.commons.jelly.tags.define.DynamicTagLibrary
- Direct Known Subclasses:
- JeezTagLibrary
- public class DynamicTagLibrary
- extends TagLibrary
DynamicTagLibrary
represents a TagLibrary which
gets created by running a Jelly script.
- Version:
- $Revision: 1.5 $
- Author:
- James Strachan
Method Summary |
Tag |
createTag(java.lang.String name)
Creates a new Tag for the given tag name if it exists |
TagScript |
createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new script to execute the given tag name and attributes |
java.lang.String |
getUri()
|
void |
registerBeanTag(java.lang.String name,
BeanTag tag)
Creates a new Jelly Bean Tag with the given name |
void |
registerDynamicTag(java.lang.String name,
Script template)
Creates a new tag with the given name and template |
void |
setUri(java.lang.String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicTagLibrary
public DynamicTagLibrary()
DynamicTagLibrary
public DynamicTagLibrary(java.lang.String uri)
createTagScript
public TagScript createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Creates a new script to execute the given tag name and attributes
- Overrides:
createTagScript
in class TagLibrary
createTag
public Tag createTag(java.lang.String name)
throws java.lang.Exception
- Creates a new Tag for the given tag name if it exists
registerDynamicTag
public void registerDynamicTag(java.lang.String name,
Script template)
- Creates a new tag with the given name and template
registerBeanTag
public void registerBeanTag(java.lang.String name,
BeanTag tag)
- Creates a new Jelly Bean Tag with the given name
getUri
public java.lang.String getUri()
setUri
public void setUri(java.lang.String uri)
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.