com.xml_project.morganaxproc.connectors
Class XsltResult

java.lang.Object
  extended by com.xml_project.morganaxproc.connectors.XsltResult

public class XsltResult
extends java.lang.Object

This class serves as a container for the results of an XSLT transformation.

As per XProc 1.0 there is always exactly one primary result available.


Constructor Summary
XsltResult(nu.xom.Document doc)
          Creates a new instance with a primary result and no secondary results.
XsltResult(nu.xom.Document doc, java.util.List<nu.xom.Document> docs)
          Creates a new instance with a primary result and a (possibly empty) list of secondary results.
 
Method Summary
 nu.xom.Document getPrimaryResult()
          Returns the primary result of a transformation.
 java.util.List<nu.xom.Document> getSecondaryResults()
          Returns the secondary results (if any) of a transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsltResult

public XsltResult(nu.xom.Document doc)
Creates a new instance with a primary result and no secondary results.

Parameters:
doc - the primary result.

XsltResult

public XsltResult(nu.xom.Document doc,
                  java.util.List<nu.xom.Document> docs)
Creates a new instance with a primary result and a (possibly empty) list of secondary results.

Parameters:
doc - the primary result.
docs - the secondary results.
Method Detail

getPrimaryResult

public nu.xom.Document getPrimaryResult()
Returns the primary result of a transformation.

Returns:
the primary result.

getSecondaryResults

public java.util.List<nu.xom.Document> getSecondaryResults()
Returns the secondary results (if any) of a transformation.

Returns:
the secondary results or an empty list (size()==0).