public class XdmDestination extends java.lang.Object implements Destination
XdmDestination
is a Destination
in which an XdmNode
is constructed to hold the output of a query or transformation:
that is, a tree using Saxon's implementation of the XDM data model
No data needs to be supplied to the XdmDestination
object. The query or transformation
populates an XmlNode
, which may then be retrieved using the getXdmNode
method.
An XdmDestination can be reused to hold the results of a second transformation only
if the reset()
method is first called to reset its state.
?????? |
---|
XdmDestination() |
?????? | ????? |
---|---|
java.net.URI |
getBaseURI()
Get the base URI that will be used for the document node when the XdmDestination is written to.
|
Receiver |
getReceiver(Configuration config)
Return a Receiver.
|
XdmNode |
getXdmNode()
Return the node at the root of the tree, after it has been constructed.
|
void |
reset()
Allow the
XdmDestination to be reused |
void |
setBaseURI(java.net.URI baseURI)
Set the base URI for the document node that will be created when the XdmDestination is written to.
|
public void setBaseURI(java.net.URI baseURI)
baseURI
- the base URI for the node that will be constructed when the XdmDestination is written to.
This must be an absolute URIjava.lang.IllegalArgumentException
- if the baseURI supplied is not an absolute URIpublic java.net.URI getBaseURI()
java.lang.IllegalStateException
- if the a base URI has been configured using internal interfaces, and is not
a valid URIpublic Receiver getReceiver(Configuration config) throws SaxonApiException
getReceiver
???? Destination
config
- The Saxon configuration. This is supplied so that the destination can
use information from the configuration (for example, a reference to the name pool)
to construct or configure the returned Receiver.SaxonApiException
- if the Receiver cannot be createdpublic XdmNode getXdmNode()
This method should not be called while the tree is under construction.
public void reset()
XdmDestination
to be reused