Class OneOrMore<T extends Item>
java.lang.Object
net.sf.saxon.value.SequenceExtent
net.sf.saxon.om.OneOrMore<T>
- All Implemented Interfaces:
GroundedValue, Sequence
A value that is a sequence containing one or more items. The main use is in declarations of reflexive extension
functions, where declaring an argument of type <OneOrMore<IntegerValue>> triggers automatic type
checking in the same way as for a native XSLT/XQuery function declaring the type as xs:integer+.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SequenceExtent
asIterable, effectiveBooleanValue, fromIterator, getCardinality, getLength, getStringValue, getStringValueCS, head, itemAt, iterate, iterator, makeResidue, makeSequenceExtent, makeSequenceExtent, reduce, reverseIterate, subsequence, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GroundedValue
concatenate, containsNode, materialize, toShortStringMethods inherited from interface Sequence
makeRepeatable
-
Constructor Details
-
OneOrMore
Create a sequence containing zero or one items- Parameters:
content- The content of the sequence
-
OneOrMore
-
-
Method Details
-
makeOneOrMore
- Throws:
XPathException
-