|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xml_project.morganaxproc.XProcOutput
public class XProcOutput
This class holds the outputs of an execution of an XProc pipeline.
Method Summary | |
---|---|
long |
getDuration()
Returns the duration of the pipeline execution (in time millis). |
javax.xml.namespace.QName |
getErrorCode()
Returns the error code of the raised error or null if no error occurred. |
nu.xom.Document |
getErrorDocument()
Returns the error document produced on the execution of the pipeline or null, if no error occurred. |
java.lang.String |
getErrorDocumentSerialized()
Return a serialized version of the error document produced on the execution of the pipeline or an empty string, if no error occurred. |
long |
getMemoryUsed()
Returns the heap memory used for pipeline execution in Bytes. |
java.lang.String[] |
getPortNames()
Returns a string array with all names of the executed XProc pipeline's output ports. |
XProcResult |
getResults(java.lang.String portName)
Returns the result from the output port with the given name, or an empty array, if no output port with the given name was found. |
javax.xml.namespace.QName |
getUnderylingError()
Return the XQuery or XSLT error that caused this error in case of XD0030 |
boolean |
hasPortNamed(java.lang.String portName)
Returns true, if there is a (possible empty) port with the given name |
boolean |
wasSuccessful()
Can be used to check, whether the execution was successful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean wasSuccessful()
Can be used to check, whether the execution was successful.
public java.lang.String[] getPortNames()
Returns a string array with all names of the executed XProc pipeline's output ports. If an error occurred during executing, the list is empty.
public boolean hasPortNamed(java.lang.String portName)
Returns true, if there is a (possible empty) port with the given name
portName
- the name of the output to look for
public XProcResult getResults(java.lang.String portName)
Returns the result from the output port with the given name, or an empty array, if no output port with the given name was found.
portName
- the name of the output port for which the documents should be returned.
public long getDuration()
Returns the duration of the pipeline execution (in time millis).
public long getMemoryUsed()
Returns the heap memory used for pipeline execution in Bytes.
public javax.xml.namespace.QName getErrorCode()
Returns the error code of the raised error or null if no error occurred.
public javax.xml.namespace.QName getUnderylingError()
Return the XQuery or XSLT error that caused this error in case of XD0030
public nu.xom.Document getErrorDocument()
Returns the error document produced on the execution of the pipeline or null, if no error occurred.
public java.lang.String getErrorDocumentSerialized()
Return a serialized version of the error document produced on the execution of the pipeline or an empty string, if no error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |