Package org.apache.commons.jelly
Interface Tag
- All Known Subinterfaces:
DynaTag,NamespaceAwareTag
- All Known Implementing Classes:
ArgTag,BaseClassLoaderTag,BreakTag,CaseTag,CatchTag,ChooseTag,DefaultTag,DynaBeanTagSupport,DynamicBeanTag,DynamicDynaBeanTag,DynamicTag,DynaTagSupport,ExprTag,FileTag,ForEachTag,GetStaticTag,IfTag,ImportTag,IncludeTag,InvokeStaticTag,InvokeTag,JellyTag,MapTagSupport,MuteTag,NewTag,OtherwiseTag,ParseTag,RemoveTag,ScopeTag,SetPropertiesTag,SetTag,StaticTag,SwitchTag,TagSupport,ThreadTag,UseBeanTag,UseListTag,WhenTag,WhileTag,WhitespaceTag,XPathTagSupport
public interface Tag
Tag represents a Jelly custom tag.
A Tag is only ever used by a single thread so that Tag developers do not
need to concern themselves with mutli-threading issues when writing a Tag.
A Tag is created per custom tag in a script, per invocation.
So there is no need to worry about pooling errors like those caused
in JSP 1.x.(
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Method Summary
Modifier and TypeMethodDescriptionvoidEvaluates this tag after all the tags properties have been initialized.getBody()Gets the context in which the tag will be runvoidinvokeBody(XMLOutput output) A helper method to invoke this tags bodyvoidSets the body of the tagvoidsetContext(JellyContext context) Sets the context in which the tag will be runvoidSets the parent of this tag
-
Method Details
-
getParent
Tag getParent()- Returns:
- the parent of this tag
-
setParent
Sets the parent of this tag -
getBody
Script getBody()- Returns:
- the body of the tag
-
setBody
Sets the body of the tag -
getContext
JellyContext getContext()Gets the context in which the tag will be run -
setContext
Sets the context in which the tag will be run- Throws:
JellyTagException
-
doTag
Evaluates this tag after all the tags properties have been initialized. -
invokeBody
A helper method to invoke this tags body- Throws:
JellyTagException
-