Package org.apache.commons.jelly.impl
Class StaticTagScript
java.lang.Object
org.apache.commons.jelly.impl.TagScript
org.apache.commons.jelly.impl.StaticTagScript
- All Implemented Interfaces:
Script
StaticTagScript is a script that evaluates a StaticTag, a piece of static XML
though its attributes or element content may contain dynamic expressions.
The first time this tag evaluates, it may have become a dynamic tag, so it will check that
a new dynamic tag has not been generated.
- Version:
- $Revision: 239434 $
- Author:
- James Strachan
-
Field Summary
Fields inherited from class org.apache.commons.jelly.impl.TagScript
attributes -
Constructor Summary
ConstructorsConstructorDescriptionStaticTagScript(TagFactory tagFactory) Deprecated.The tag name is inferred automatically, so no need to set a tag factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected TagFactory method to create a new Tag instance.protected TagfindDynamicTag(JellyContext context, StaticTag tag) Attempts to find a dynamically created tag that has been created since this script was compiledvoidrun(JellyContext context, XMLOutput output) Evaluates the body of a tagMethods inherited from class org.apache.commons.jelly.impl.TagScript
addAttribute, addAttribute, applyLocation, clearTag, compile, configureTag, convertType, createJellyException, createJellyException, endNamespacePrefixes, getAttribute, getBodyText, getColumnNumber, getElementName, getFileName, getLineNumber, getLocalName, getNamespaceContext, getNsUri, getParent, getSaxAttributes, getScriptURL, getTag, getTagBody, getTagFactory, handleException, handleException, handleException, handleException, newInstance, setColumnNumber, setContextURLs, setElementName, setFileName, setLineNumber, setLocalName, setLocator, setNsUri, setParent, setSaxAttributes, setTag, setTagBody, setTagFactory, setTagNamespacesMap, startNamespacePrefixes, toString
-
Constructor Details
-
StaticTagScript
public StaticTagScript() -
StaticTagScript
Deprecated.The tag name is inferred automatically, so no need to set a tag factory. Use the default constructor.
-
-
Method Details
-
createTag
Description copied from class:TagScriptFactory method to create a new Tag instance. The default implementation is to delegate to the TagFactory- Overrides:
createTagin classTagScript- Throws:
JellyException
-
run
Description copied from class:TagScriptEvaluates the body of a tag- Specified by:
runin interfaceScript- Overrides:
runin classTagScript- Throws:
JellyTagException
-
findDynamicTag
Attempts to find a dynamically created tag that has been created since this script was compiled- Throws:
JellyException
-