Project

Profile

Help

Revision 2de52089

Added by Michael Kay over 1 year ago

Migrate 10.0 bug fixes from development branch to released 10.0 repositories (os and priv)

View differences:

latest10/hej/net/sf/saxon/s9api/streams/package.html
1 1
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
2
<!-- Copyright (c) 2018 Saxonica Limited. -->
2
<!-- Copyright (c) 2018-2020 Saxonica Limited. -->
3 3
<!-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -->
4 4
<!-- If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 5
<!-- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. -->
......
140 140
    <li><code>asListOfNodes()</code> - deliver the contents as a <code>List&lt;XdmNode&gt;</code></li>
141 141
    <li><code>asOptionalNode()</code> - deliver the contents as an <code>Optional&lt;XdmNode&gt;</code></li>
142 142
    <li><code>asNode()</code> - deliver the contents as a single <code>XdmNode</code></li>
143
    <li><code>asListOfAtomic()</code> - deliver the contents as a <code>List&lt;XdmNode&gt;</code></li>
144
    <li><code>asOptionalAtomic()</code> - deliver the contents as an <code>Optional&lt;XdmNode&gt;</code></li>
145
    <li><code>asAtomic()</code> - deliver the contents as a single <code>XdmNode</code></li>
143
    <li><code>asListOfAtomic()</code> - deliver the contents as a <code>List&lt;XdmAtomicValue&gt;</code></li>
144
    <li><code>asOptionalAtomic()</code> - deliver the contents as an <code>Optional&lt;XdmAtomicValue&gt;</code></li>
145
    <li><code>asAtomic()</code> - deliver the contents as a single <code>XdmAtomicValue</code></li>
146 146
    <li><code>asOptionalString()</code> - deliver the contents as an <code>Optional&lt;String&gt;</code> by taking
147 147
    the string value of each item</li>
148 148
    <li><code>asString()</code> - deliver the contents as a single <code>String</code></li>
......
153 153
conforms to these expectations. For example, if <code>asNode()</code> is used, then an unchecked exception
154 154
occurs if the sequence has a length other than 1 (one), or if its single item is not a node.</p>
155 155

  
156
<p>Other ways of generating an <code>XdmStream</code> include (TODO!!!):</p>
156
<p>Other ways of generating an <code>XdmStream</code> include:</p>
157 157

  
158 158
<ul>
159 159
    <li>As the result of an XPath expression, using the method <code>XPathSelector.stream()</code></li>
160 160
    <li>As the result of an XQuery expression, using the method <code>XQueryEvaluator.stream()</code></li>
161
    <li>As a <code>StreamDestination</code> capturing the result of an XSLT transformation</li>
161
    <li>As the result of <code>XdmSequenceIterator.stream()</code></li>
162 162
</ul>
163 163

  
164 164
<hr>

Also available in: Unified diff