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:
- org.apache.commons.jelly.Tag
- public class TaglibTag
- extends org.apache.commons.jelly.TagSupport
The <taglib> tag is used to define a new tag library
using a Jelly script. The tag library is identified by its
URI
.
The tags for a taglib are declared using the TagTag
.
You can 'inherit' tags from a previously defined taglib, as well,
allowing runtime extension of tag libraries
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
org.apache.commons.jelly.impl.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, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, 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(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.JellyTagException
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 org.apache.commons.jelly.impl.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-2006 Apache Software Foundation. All Rights Reserved.