org.apache.commons.jelly.tags.define
Class TaglibTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.define.TaglibTag
- All Implemented Interfaces:
- Tag
- public class TaglibTag
- extends TagSupport
The <taglib> tag is used to define a new tag library
using a Jelly script..
- Version:
- $Revision: 1.8 $
- Author:
- James Strachan
Method Summary |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
DynamicTagLibrary |
getTagLibrary()
|
java.lang.String |
getUri()
|
boolean |
isInherit()
Returns the inherit. |
void |
setInherit(boolean inherit)
Sets whether this dynamic tag should inherit from the current existing tag library
of the same URI. |
void |
setUri(java.lang.String uri)
Sets the namespace URI to register this new dynamic tag library with |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaglibTag
public TaglibTag()
TaglibTag
public TaglibTag(java.lang.String uri)
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
getUri
public java.lang.String getUri()
setUri
public void setUri(java.lang.String uri)
- Sets the namespace URI to register this new dynamic tag library with
getTagLibrary
public DynamicTagLibrary getTagLibrary()
isInherit
public boolean isInherit()
- Returns the inherit.
- Returns:
- boolean
setInherit
public void setInherit(boolean inherit)
- Sets whether this dynamic tag should inherit from the current existing tag library
of the same URI. This feature is enabled by default so that tags can easily be
some tags can be overridden in an existing library, such as when making Mock Tags.
You can disable this option if you want to disable any tags in the base library,
turning them into just normal static XML.
- Parameters:
inherit
- The inherit to set
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.