Class ImportTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- org.apache.commons.jelly.tags.core.ImportTag
-
- All Implemented Interfaces:
Tag
public class ImportTag extends TagSupport
Imports another script.By default, the imported script does not have access to the parent script's variable context. This behaviour may be modified using the
inherit
attribute.- Version:
- $Revision: 155420 $
- Author:
- bob mcwhirter
-
-
Field Summary
-
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
-
-
Constructor Summary
Constructors Constructor Description ImportTag()
Create a new Import tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doTag(XMLOutput output)
Perform tag processingboolean
isInherit()
void
setFile(String file)
Sets the file for the script to evaluate.void
setInherit(boolean inherit)
Sets whether property inheritence is enabled or disabledvoid
setUri(String uri)
Sets the URI (relative URI or absolute URL) for the script to evaluate.-
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
-
-
-
-
Method Detail
-
doTag
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Perform tag processing- Parameters:
output
- the destination for output- Throws:
MissingAttributeException
- if a required attribute is missingJellyTagException
- on any other errors
-
isInherit
public boolean isInherit()
- Returns:
- whether property inheritence is enabled
-
setInherit
public void setInherit(boolean inherit)
Sets whether property inheritence is enabled or disabled
-
setUri
public void setUri(String uri)
Sets the URI (relative URI or absolute URL) for the script to evaluate.
-
setFile
public void setFile(String file)
Sets the file for the script to evaluate.- Parameters:
file
- The file to set
-
-