|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.jelly.JellyUtils
Utilities for Jelly.
Constructor Summary | |
JellyUtils()
|
Method Summary | |
static void |
compareContexts(MavenJellyContext ctx1,
MavenJellyContext ctx2)
Debugging function to show the differences between two Jelly contexts. |
static Script |
compileScript(java.io.File scriptFile,
JellyContext context)
Compile a jelly script. |
static Script |
compileScript(java.io.InputStream scriptInputStream,
JellyContext context)
Compile a jelly script. |
static Script |
compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
JellyContext context)
Compile a jelly script. |
static Script |
compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
JellyContext context,
java.lang.String encoding)
Compile a jelly script. |
static Expression |
decomposeExpression(java.lang.String text,
JellyContext context)
Recursively evaluate a string representation of a jelly expression. |
static void |
populateVariables(JellyContext destContext,
JellyContext sourceContext)
Populate a context with variables, including parent variables if inheritance is enabled. |
static void |
runScript(java.io.File scriptFile,
java.net.URL rootUrl,
JellyContext context,
XMLOutput output)
Run a jelly script. |
static void |
runScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
java.net.URL rootUrl,
JellyContext context,
XMLOutput output)
Run a jelly script. |
static void |
runScript(java.io.InputStream scriptInputStream,
java.net.URL rootUrl,
JellyContext context,
XMLOutput output)
Run a jelly script. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JellyUtils()
Method Detail |
public static void runScript(java.io.InputStream scriptInputStream, java.net.URL rootUrl, JellyContext context, XMLOutput output) throws java.lang.Exception
scriptInputStream
- Script input stream.rootUrl
- Root explicit context of the script.context
- Jelly context.output
- Output sink.
java.lang.Exception
- If an error occurs while locating, compiling or
executing the script.public static void runScript(java.io.InputStream scriptInputStream, java.lang.String systemId, java.net.URL rootUrl, JellyContext context, XMLOutput output) throws java.lang.Exception
scriptInputStream
- Script input stream.systemId
- the system identifier to help resolve relative URLsrootUrl
- Root explicit context of the script.context
- Jelly context.output
- Output sink.
java.lang.Exception
- If an error occurs while locating, compiling or
executing the script.public static void runScript(java.io.File scriptFile, java.net.URL rootUrl, JellyContext context, XMLOutput output) throws java.lang.Exception
scriptFile
- Location of the script to run.rootUrl
- Root explicit context of the script.context
- Jelly context.output
- Output sink.
java.lang.Exception
- If an error occurs while locating, compiling or
executing the script.public static Script compileScript(java.io.File scriptFile, JellyContext context) throws java.lang.Exception
scriptFile
- Location of the script to run.context
- Jelly context.
java.lang.Exception
- If an error occurs while locating or compiling the
script.public static Script compileScript(java.io.InputStream scriptInputStream, JellyContext context) throws java.lang.Exception
scriptInputStream
- Script input stream.context
- Jelly context.
java.lang.Exception
- If an error occurs while locating or compiling the
script.public static Script compileScript(java.io.InputStream scriptInputStream, java.lang.String systemId, JellyContext context) throws java.lang.Exception
scriptInputStream
- Script input stream.systemId
- the system identifier to help resolve relative URLscontext
- Jelly context.
java.lang.Exception
- If an error occurs while locating or compiling the
script.public static Script compileScript(java.io.InputStream scriptInputStream, java.lang.String systemId, JellyContext context, java.lang.String encoding) throws java.lang.Exception
scriptInputStream
- Script input stream.systemId
- the system identifier to help resolve relative URLscontext
- Jelly context.encoding
- To use when reading XML.
java.lang.Exception
- If an error occurs while locating or compiling the
script.public static Expression decomposeExpression(java.lang.String text, JellyContext context)
text
- String representation of the a Jelly expression.context
- The Jelly context to compute the expression against.
public static void compareContexts(MavenJellyContext ctx1, MavenJellyContext ctx2)
ctx1
- first contextctx2
- second contextpublic static void populateVariables(JellyContext destContext, JellyContext sourceContext)
destContext
- the destination contextsourceContext
- the source context
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |