|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.ImportTag
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.
| Field Summary | |
private java.lang.String |
file
The file to be imported. |
private boolean |
inherit
Whether the imported script has access to the caller's variables |
private java.lang.String |
uri
the location of the script being imported, relative to the current script |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
ImportTag()
Create a new Import tag. |
|
| Method Summary | |
void |
doTag(XMLOutput output)
Perform tag processing |
boolean |
isInherit()
|
void |
setFile(java.lang.String file)
Sets the file for the script to evaluate. |
void |
setInherit(boolean inherit)
Sets whether property inheritence is enabled or disabled |
void |
setUri(java.lang.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String uri
private boolean inherit
private java.lang.String file
| Constructor Detail |
public ImportTag()
| Method Detail |
public void doTag(XMLOutput output)
throws MissingAttributeException,
JellyTagException
output - the destination for output
MissingAttributeException - if a required attribute is missing
JellyTagException - on any other errorspublic boolean isInherit()
public void setInherit(boolean inherit)
public void setUri(java.lang.String uri)
public void setFile(java.lang.String file)
file - The file to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||