java.lang.Object
dev.metaschema.core.metapath.function.library.FnOneOrMore
Implements the XPath 3.1 fn:one-or-more
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISequence<?>fnOneOrMore(ISequence<?> sequence) Check that the provided sequence has one or more items.
-
Method Details
-
fnOneOrMore
Check that the provided sequence has one or more items.Based on the XPath 3.1 fn:one-or-more function.
- Parameters:
sequence- the sequence to evaluate- Returns:
- the sequence if it has zero or one items
- Throws:
InvalidArgumentFunctionException- with the codeInvalidArgumentFunctionException.INVALID_ARGUMENT_ONE_OR_MOREif the sequence contains no items
-