Class XdmEmptySequence
java.lang.Object
net.sf.saxon.s9api.XdmValue
net.sf.saxon.s9api.XdmEmptySequence
The class
XdmEmptySequence represents an empty sequence in the XDM Data Model.
This is a singleton class: there is only one instance, which may be obtained
using the getInstance() method.
An empty sequence may also be represented by an XdmValue whose length happens to be zero.
Applications should therefore not test to see whether an object is an instance of this class
in order to decide whether it is empty.
Note: in interfaces that expect an XdmItem, an empty sequence is represented by a
Java null value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XdmEmptySequenceReturn the singleton instance of this classintsize()Get the number of items in the sequenceMethods inherited from class XdmValue
append, documentOrder, getUnderlyingValue, isEmpty, itemAt, iterator, makeSequence, makeValue, matches, select, stream, subsequence, toString, where, wrap, wrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
getInstance
Return the singleton instance of this class- Returns:
- an XdmValue representing an empty sequence
-
size
-