Example usage for Java org.apache.commons.jelly JellyContext fields, constructors, methods, implement or subclass
The text is from its open source code.
JellyContext(URL rootURL) Create a new context with the given rootURL | |
JellyContext(JellyContext parent) Create a new context with the given parent context. | |
JellyContext() Create a new context with the currentURL set to the rootURL |
Script | compileScript(String uri) Attempts to parse the script from the given uri using the #getResource method then returns the compiled script. |
Script | compileScript(URL url) Attempts to parse the script from the given URL using the #getResource method then returns the compiled script. |
Script | compileScript(InputSource source) Attempts to parse the script from the given InputSource using the #getResource method then returns the compiled script. |
Object | findVariable(String name) Finds the variable value of the given name in this context or in any other parent context. |
Object | getVariable(String name) |
Map | getVariables() |
void | registerTagLibrary(String namespaceURI, TagLibrary taglib) Registers the given tag library against the given namespace URI. |
void | registerTagLibrary(String namespaceURI, String className) Registers the given tag library class name against the given namespace URI. |
JellyContext | runScript(File file, XMLOutput output) Parses the script from the given File then compiles it and runs it. |
JellyContext | runScript(URL url, XMLOutput output) Parses the script from the given URL then compiles it and runs it. |
JellyContext | runScript(InputSource source, XMLOutput output) Parses the script from the given InputSource then compiles it and runs it. |
JellyContext | runScript(String uri, XMLOutput output) Parses the script from the given uri using the JellyContext.getResource() API then compiles it and runs it. |
void | setCurrentURL(URL currentURL) Sets the current URL context of the current script that is executing. |
void | setVariable(String name, Object value) Sets the value of the named variable |
void | setVariables(Map variables) Sets the Map of variables to use |