org.apache.commons.jelly.task
Class AntJellyContext
java.lang.Object
|
+--org.apache.commons.jelly.JellyContext
|
+--org.apache.commons.jelly.task.AntJellyContext
- public class AntJellyContext
- extends JellyContext
AntJellyContext
represents the Jelly context from inside Ant.
- Version:
- $Revision: 1.10 $
- Author:
- James Strachan
Methods inherited from class org.apache.commons.jelly.JellyContext |
compileScript, compileScript, createRelativeURL, findVariable, getClassLoader, getCurrentURL, getJellyContextURL, getParent, getResource, getResourceAsStream, getRootURL, getScope, getTagLibrary, getUseContextClassLoader, getVariable, isCacheTags, isExport, isExportLibraries, isInherit, isTagLibraryRegistered, newJellyContext, registerTagLibrary, registerTagLibrary, removeVariable, runScript, runScript, runScript, runScript, setCacheTags, setClassLoader, setCurrentURL, setExport, setExportLibraries, setInherit, setRootURL, setUseContextClassLoader, setVariable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntJellyContext
public AntJellyContext(org.apache.tools.ant.Project project,
JellyContext parentJellyContext)
getVariable
public java.lang.Object getVariable(java.lang.String name)
- Overrides:
getVariable
in class JellyContext
- Returns:
- the value of the given variable name
setVariable
public void setVariable(java.lang.String name,
java.lang.Object value)
- Sets the value of the given variable name
- Overrides:
setVariable
in class JellyContext
removeVariable
public void removeVariable(java.lang.String name)
- Removes the given variable
- Overrides:
removeVariable
in class JellyContext
getVariableNames
public java.util.Iterator getVariableNames()
- Overrides:
getVariableNames
in class JellyContext
- Returns:
- an Iterator over the current variable names in this
context
getVariables
public java.util.Map getVariables()
- Overrides:
getVariables
in class JellyContext
- Returns:
- the Map of variables in this scope
setVariables
public void setVariables(java.util.Map variables)
- Sets the Map of variables to use
- Overrides:
setVariables
in class JellyContext
createChildContext
protected JellyContext createChildContext()
- Factory method to create a new child of this context
- Overrides:
createChildContext
in class JellyContext
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.