public class XdmEmptySequence extends XdmValue
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.
Modifier and Type | Method and Description |
---|---|
static XdmEmptySequence |
getInstance()
Return the singleton instance of this class
|
int |
size()
Get the number of items in the sequence
|
append, getUnderlyingValue, itemAt, iterator, makeSequence, makeValue, setValue, toString, wrap
public static XdmEmptySequence getInstance()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.