|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xml_project.morganaxproc.XProcLibrary
public class XProcLibrary
This class represents the compiled form of an XProc library. To compile
an XProc library call compileLibrary()
from an XProcCompiler
.
Objects of this class can be used to run the same (compiled) step from the library multiple times possibly with different port bindings and/or options.
Method Summary | |
---|---|
boolean |
containsStep(java.lang.String stepname)
Returns true, if the library contains a step with the given (Clark-) name. |
XProcConfiguration |
getConfiguration()
Return the XProcConfiguration used to run this XProcLibrary/XProcPipeline . |
XProcEngine |
getEngine()
Returns the XProcEngine used to generate this XProcLibrary/XProcPipeline . |
XProcOutput |
run(java.lang.String stepName)
Runs the step with the given (Clark-) name without any input. |
XProcOutput |
run(java.lang.String stepName,
XProcInput inputs)
Runs the step with the given (Clark-) name and the given input. |
void |
setConfiguration(XProcConfiguration config)
Sets the XProcConfiguration to use when running this XProcLibrary/XProcPipeline . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean containsStep(java.lang.String stepname)
Returns true, if the library contains a step with the given (Clark-) name.
stepname
- a (Clark-) name
public XProcOutput run(java.lang.String stepName)
Runs the step with the given (Clark-) name without any input. Produces an XProcOutput object anyway, even if an error occurs.
stepName
- the (Clark-) name of the step to run
XProcOutput
holding the result of the execution.public XProcOutput run(java.lang.String stepName, XProcInput inputs)
Runs the step with the given (Clark-) name and the given input. Produces an XProcOutput object anyway, even if an error occurs.
stepName
- the (Clark-) name of the step to runinputs
- the inputs (port bindings and option settings) for the execution of the pipeline.
XProcOutput
holding the result of the execution.public XProcEngine getEngine()
Returns the XProcEngine
used to generate this XProcLibrary/XProcPipeline
.
Please mind that the XProcConfiguration
object hold by XProcEngine
might have changed since generation of the pipeline/library.
XProcEngine
used to generate this XProcPipeline
.public XProcConfiguration getConfiguration()
Return the XProcConfiguration
used to run this XProcLibrary/XProcPipeline
.
public void setConfiguration(XProcConfiguration config) throws XProcInterfaceException
Sets the XProcConfiguration
to use when running this XProcLibrary/XProcPipeline
.
config
- the configuration to use.
XProcInterfaceException
- if config
is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |