Class OneOrMore<T extends Item<?>>

  • 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+.
    • Constructor Detail

      • OneOrMore

        public OneOrMore​(T[] content)
        Create a sequence containing zero or one items
        Parameters:
        content - The content of the sequence
      • OneOrMore

        public OneOrMore​(List<T> content)