Package net.sf.saxon.om
Class OneOrMore<T extends Item<?>>
- java.lang.Object
-
- net.sf.saxon.value.SequenceExtent<T>
-
- net.sf.saxon.om.OneOrMore<T>
-
- All Implemented Interfaces:
Iterable<T>,GroundedValue<T>,Sequence<T>
public class OneOrMore<T extends Item<?>> extends SequenceExtent<T>
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+.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Item<?>>
OneOrMore<T>makeOneOrMore(Sequence<T> sequence)-
Methods inherited from class net.sf.saxon.value.SequenceExtent
asIterable, effectiveBooleanValue, fromIterator, getCardinality, getLength, getStringValue, getStringValueCS, head, itemAt, iterate, iterator, makeResidue, makeSequenceExtent, makeSequenceExtent, reduce, reverseIterate, subsequence, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.GroundedValue
materialize, toShortString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
-
-
-
Method Detail
-
makeOneOrMore
public static <T extends Item<?>> OneOrMore<T> makeOneOrMore(Sequence<T> sequence) throws XPathException
- Throws:
XPathException
-
-