|
API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XCompilationFactory
Factory for compiling expressions, queries and stylesheets into Java classes.
Load methods are provided for loading the compiled java classes
and instantiating the executable. Compiling the expression, query or
stylesheet ahead of time means that the cost of preparation can
be avoided during the application runtime. The getCompilationFactory
method on XFactory
can be used to get an XCompilationFactory
instance.
XFactory.getCompilationFactory()
Method Summary | |
---|---|
boolean |
compileXPath(StreamSource expression,
XCompilationParameters parameters)
Compile an XPath expression into Java classes. |
boolean |
compileXPath(StreamSource expression,
XStaticContext context,
XCompilationParameters parameters)
Compile an XPath expression into Java classes. |
boolean |
compileXPath(String expression,
XCompilationParameters parameters)
Compile an XPath expression into Java classes. |
boolean |
compileXPath(String expression,
XStaticContext context,
XCompilationParameters parameters)
Compile an XPath expression into Java classes. |
boolean |
compileXQuery(StreamSource query,
XCompilationParameters parameters)
Compile an XQuery expression into Java classes. |
boolean |
compileXQuery(StreamSource query,
XStaticContext context,
XCompilationParameters parameters)
Compile an XQuery expression into Java classes. |
boolean |
compileXQuery(String query,
XCompilationParameters parameters)
Compile an XQuery expression into Java classes. |
boolean |
compileXQuery(String query,
XStaticContext context,
XCompilationParameters parameters)
Compile an XQuery expression into Java classes. |
boolean |
compileXSLT(StreamSource stylesheet,
XCompilationParameters parameters)
Compile an XSL stylesheet into Java classes. |
boolean |
compileXSLT(StreamSource stylesheet,
XStaticContext context,
XCompilationParameters parameters)
Compile an XSL stylesheet into Java classes. |
XPathExecutable |
loadXPath(XCompilationParameters parameters)
Load the compiled XPath expression classes and return an XPathExecutable object. |
XQueryExecutable |
loadXQuery(XCompilationParameters parameters)
Load the compiled XQuery expression classes and return an XQueryExecutable object. |
XSLTExecutable |
loadXSLT(XCompilationParameters parameters)
Load the compiled XSL stylesheet classes and return an XSLTransformExecutable object. |
XCompilationParameters |
newCompilationParameters(String className)
Create a new XCompilationParameters object. |
Method Detail |
---|
boolean compileXPath(String expression, XCompilationParameters parameters)
expression
- The XPath expression as a String
.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the expression is null.
XProcessException
- if the compile fails because of errors in the expression.newCompilationParameters(String)
boolean compileXPath(String expression, XStaticContext context, XCompilationParameters parameters)
expression
- The XPath expression as a String
.context
- The static context.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the expression is null.
XProcessException
- if the compile fails because of errors in the expression.newCompilationParameters(String)
boolean compileXPath(StreamSource expression, XCompilationParameters parameters)
expression
- The XPath expression as a StreamSource
.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the expression is null.
XProcessException
- if the compile fails because of errors in the expression.newCompilationParameters(String)
boolean compileXPath(StreamSource expression, XStaticContext context, XCompilationParameters parameters)
expression
- The XPath expression as a StreamSource
.context
- The static context.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the expression is null.
XProcessException
- if the compile fails because of errors in the expression.newCompilationParameters(String)
XPathExecutable loadXPath(XCompilationParameters parameters)
XPathExecutable
object.
parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
XProcessException
- if the compiled expression cannot be loaded.newCompilationParameters(String)
boolean compileXQuery(String query, XCompilationParameters parameters)
query
- The XQuery expression as a String
.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the query is null.
XProcessException
- if the compile fails because of errors in the query.newCompilationParameters(String)
boolean compileXQuery(String query, XStaticContext context, XCompilationParameters parameters)
query
- The XQuery expression as an String
.context
- The static context.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the query is null.
XProcessException
- if the compile fails because of errors in the query.newCompilationParameters(String)
boolean compileXQuery(StreamSource query, XCompilationParameters parameters)
query
- The XQuery expression as a StreamSource
.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the query is null.
XProcessException
- if the compile fails because of errors in the query.newCompilationParameters(String)
boolean compileXQuery(StreamSource query, XStaticContext context, XCompilationParameters parameters)
query
- The XQuery expression as an StreamSource
.context
- The static context.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the query is null.
XProcessException
- if the compile fails because of errors in the query.newCompilationParameters(String)
XQueryExecutable loadXQuery(XCompilationParameters parameters)
XQueryExecutable
object.
parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
XProcessException
- if the compiled query cannot be loaded.newCompilationParameters(String)
boolean compileXSLT(StreamSource stylesheet, XCompilationParameters parameters)
stylesheet
- The XSL stylesheet as an StreamSource
.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the stylesheet is null.
XProcessException
- if the compile fails because of errors in the stylesheet.newCompilationParameters(String)
boolean compileXSLT(StreamSource stylesheet, XStaticContext context, XCompilationParameters parameters)
stylesheet
- The XSL stylesheet as an StreamSource
.context
- The static context.parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
NullPointerException
- if the stylesheet is null.
XProcessException
- if the compile fails because of errors in the stylesheet.newCompilationParameters(String)
XSLTExecutable loadXSLT(XCompilationParameters parameters)
XSLTransformExecutable
object.
parameters
- The compilation parameters. Use newCompilationParameters
to create a new XCompilationParameters
object.
XProcessException
- if the compiled stylesheet cannot be loaded.newCompilationParameters(String)
XCompilationParameters newCompilationParameters(String className)
XCompilationParameters
object. Used to specify
compile and load parameters such as the class name and package name for the
generated classes. The class name is required.
className
- The class name to use for the generated classes. Must be
a valid Java class name.
XCompilationParameters
object.
NullPointerException
- if className
is null.
|
IBM Copyright 2004-2008 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |