Saxon.Api
Class XdmDestination
-
public class XdmDestination
- implements XmlDestination
An XdmDestination
is an XmlDestination
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 as the value of the XmlNode
property.
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.
Nested Classes |
|
---|---|
class | XdmDestination.TreeProtector
|
Constructor Summary |
|
---|---|
XdmDestination () Construct an |
Property Summary |
|
---|---|
Uri | BaseUri This property determines the base URI of the constructed |
TreeModel | TreeModel
The Tree Model implementation to be used for the constructed document. By default
the |
XdmNode | XdmNode After construction, retrieve the constructed document node. |
Method Summary |
|
---|---|
void | Close() Close the destination, allowing resources to be released. Saxon calls this method when it has finished writing to the destination. |
java.net.URI | getDestinationBaseURI() Get the base URI of the resource being written to this destination |
net.sf.saxon.s9api.Destination | GetUnderlyingDestination()
Get the underlying Saxon |
void | Reset() Reset the state of the |
void | setDestinationBaseURI(java.net.URI uri) Set the base URI of the resource being written to this destination |
Property Detail
BaseUri
This property determines the base URI of the constructed XdmNode
.
If the BaseUri
property of the XdmDestination
is set before the destination is written to,
then the constructed XdmNode
will have this base URI. Setting this property after constructing the node
has no effect.
TreeModel
The Tree Model implementation to be used for the constructed document. By default
the TinyTree
is used. The main reason for using the LinkedTree
alternative is if
updating is required (the TinyTree
is not updateable).
XdmNode
After construction, retrieve the constructed document node.
The value of the property will be null if no data has been written to the
XdmDestination
, either because the process that writes to the destination has not
yet been run, or because the process produced no output.
Method Detail
Close
getDestinationBaseURI
Get the base URI of the resource being written to this destination
Returns:
GetUnderlyingDestination
Get the underlying Saxon Destination
object from the XdmDestination
.
This method is for internal use but is provided for the benefit of applications that
need to mix
use of the Saxon .NET API with direct use of the underlying objects
and methods offered by the Java implementation.
Reset
Reset the state of the XdmDestination
so that it can be used to hold
the result of another query or transformation.
setDestinationBaseURI
Set the base URI of the resource being written to this destination
Parameters:
uri
- the base URI to be used
Close the destination, allowing resources to be released. Saxon calls this method when it has finished writing to the destination.