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

Constructor Summary
DynamicTagLibrary()
           
DynamicTagLibrary(java.lang.String uri)
           
 
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 org.apache.commons.jelly.TagLibrary
createExpression, getExpressionFactory, getTagClasses, registerTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicTagLibrary

public DynamicTagLibrary()

DynamicTagLibrary

public DynamicTagLibrary(java.lang.String uri)
Method Detail

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.