Uses of Interface
dev.metaschema.core.metapath.item.ISequence
Packages that use ISequence
Package
Description
Provides the core Metapath expression language implementation.
Provides the core framework for defining and executing Metapath functions.
Built-in Metapath function implementations based on the XPath 3.1
specification.
Core interfaces and classes for the Metapath item type system.
Provides support for Metapath function items, including arrays and maps.
Provides support for Metapath type system and sequence type testing.
Metaschema constraint definitions and validation framework.
Provides utility classes for common operations throughout the Metaschema
framework.
-
Uses of ISequence in dev.metaschema.core.metapath
Methods in dev.metaschema.core.metapath that return ISequenceModifier and TypeMethodDescriptionIExpression.accept(DynamicContext dynamicContext, ISequence<?> focus) Provides a double dispatch callback for visitor handling.IMetapathExpression.evaluate()Evaluate this Metapath expression without a specific focus.Evaluate this Metapath expression using the providedfocusas the initial evaluation context.IMetapathExpression.evaluate(IItem focus, DynamicContext dynamicContext) Evaluate this Metapath expression using the providedfocusas the initial evaluation context.ISequence<?>DynamicContext.getCachedResult(CalledContext callingContext) Get the cached function call result for evaluating a function that has the propertyIFunction.FunctionProperty.DETERMINISTIC.ISequence<?>DynamicContext.getVariableValue(IEnhancedQName name) Get the sequence value assigned to a let variable with the provided qualified name.Methods in dev.metaschema.core.metapath with parameters of type ISequenceModifier and TypeMethodDescriptionIExpression.accept(DynamicContext dynamicContext, ISequence<?> focus) Provides a double dispatch callback for visitor handling.DynamicContext.bindVariableValue(IEnhancedQName name, ISequence<?> boundValue) Bind the variablenameto the sequencevalue.voidDynamicContext.cacheResult(CalledContext callingContext, ISequence<?> result) Cache a function call result for a that has the propertyIFunction.FunctionProperty.DETERMINISTIC.<T> TConvert the provided sequence to the expected type. -
Uses of ISequence in dev.metaschema.core.metapath.function
Methods in dev.metaschema.core.metapath.function that return ISequenceModifier and TypeMethodDescriptionCasts the provideditemas the result sequence type.ISequence<?>IFunction.execute(List<? extends ISequence<?>> arguments, DynamicContext dynamicContext, ISequence<?> focus) Execute the function with the providedarguments, using the providedDynamicContextandfocus.ISequence<?>IFunctionExecutor.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) Execute the provided function using the provided arguments, dynamic context, and focus.protected ISequence<?>DefaultFunction.executeInternal(List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) Execute the provided function using the provided arguments, dynamic context, and focus.Methods in dev.metaschema.core.metapath.function that return types with arguments of type ISequenceModifier and TypeMethodDescriptionCalledContext.getArguments()Get the arguments associated with the calling context.Methods in dev.metaschema.core.metapath.function with parameters of type ISequenceModifier and TypeMethodDescriptionCasts the provideditemas the result sequence type.ISequence<?>IFunction.execute(List<? extends ISequence<?>> arguments, DynamicContext dynamicContext, ISequence<?> focus) Execute the function with the providedarguments, using the providedDynamicContextandfocus.static IBooleanItemComparisonFunctions.generalComparison(ISequence<? extends IAnyAtomicItem> leftItems, ComparisonFunctions.Operator operator, ISequence<? extends IAnyAtomicItem> rightItems, DynamicContext dynamicContext) Compare the sets of atomic items.static INumericItemDeprecated, for removal: This API element is subject to removal in a future version.Method parameters in dev.metaschema.core.metapath.function with type arguments of type ISequenceModifier and TypeMethodDescriptionISequence<?>IFunction.execute(List<? extends ISequence<?>> arguments, DynamicContext dynamicContext, ISequence<?> focus) Execute the function with the providedarguments, using the providedDynamicContextandfocus.ISequence<?>IFunctionExecutor.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) Execute the provided function using the provided arguments, dynamic context, and focus.protected ISequence<?>DefaultFunction.executeInternal(List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) Execute the provided function using the provided arguments, dynamic context, and focus.Constructor parameters in dev.metaschema.core.metapath.function with type arguments of type ISequenceModifierConstructorDescriptionCalledContext(IFunction function, List<ISequence<?>> arguments, IItem contextItem) Creates an immutable execution context for a function call. -
Uses of ISequence in dev.metaschema.core.metapath.function.library
Methods in dev.metaschema.core.metapath.function.library that return ISequenceModifier and TypeMethodDescriptionCastFunction.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) NumericFunction.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) static ISequence<?>FnExactlyOne.fnExactlyOne(ISequence<?> sequence) Check that the provided sequence has exactly one item.static ISequence<IIntegerItem>FnIndexOf.fnIndexOf(List<IAnyAtomicItem> items, IAnyAtomicItem search, DynamicContext dynamicContext) Determine if the string provided in the first argument contains the string in the second argument as a substring.static ISequence<?>FnOneOrMore.fnOneOrMore(ISequence<?> sequence) Check that the provided sequence has one or more items.static ISequence<IStringItem>An implementation of XPath 3.1 fn:path.static ISequence<IStringItem>FnTokenize.fnTokenize(IStringItem input, IStringItem pattern, IStringItem flags) Implements fn:tokenize.static ISequence<?>FnZeroOrOne.fnZeroOrOne(ISequence<?> sequence) Check that the provided sequence has zero or one items.static ISequence<?>MapForEach.forEach(IMapItem<?> map, BiFunction<IAnyAtomicItem, ISequence<?>, ISequence<?>> action) An implementation of XPath 3.1 map:for-each.MpRecurseDepth.recurseDepth(ISequence<INodeItem> initialContext, IMetapathExpression recursionMetapath, DynamicContext dynamicContext) Evaluates therecursionMetapathstarting with the the items in theinitialContextand also recursively using the resulting items returned by evaluating this path.Methods in dev.metaschema.core.metapath.function.library with parameters of type ISequenceModifier and TypeMethodDescriptionstatic IBooleanItemGet the effective boolean value of the provided sequence.static booleanFnBoolean.fnBooleanAsPrimitive(ISequence<?> sequence) A helper method that gets the effective boolean value of the provided sequence based on XPath 3.1.static ISequence<?>FnExactlyOne.fnExactlyOne(ISequence<?> sequence) Check that the provided sequence has exactly one item.static IBooleanItemIdentify if there is at least one item in thesequence.static IBooleanItemGet the negated, effective boolean value of the provided item.static ISequence<?>FnOneOrMore.fnOneOrMore(ISequence<?> sequence) Check that the provided sequence has one or more items.static ISequence<IStringItem>An implementation of XPath 3.1 fn:path.static ISequence<?>FnZeroOrOne.fnZeroOrOne(ISequence<?> sequence) Check that the provided sequence has zero or one items.MpRecurseDepth.recurseDepth(ISequence<INodeItem> initialContext, IMetapathExpression recursionMetapath, DynamicContext dynamicContext) Evaluates therecursionMetapathstarting with the the items in theinitialContextand also recursively using the resulting items returned by evaluating this path.Method parameters in dev.metaschema.core.metapath.function.library with type arguments of type ISequenceModifier and TypeMethodDescriptionCastFunction.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) NumericFunction.execute(IFunction function, List<ISequence<?>> arguments, DynamicContext dynamicContext, IItem focus) static ISequence<?>MapForEach.forEach(IMapItem<?> map, BiFunction<IAnyAtomicItem, ISequence<?>, ISequence<?>> action) An implementation of XPath 3.1 map:for-each.static ISequence<?>MapForEach.forEach(IMapItem<?> map, BiFunction<IAnyAtomicItem, ISequence<?>, ISequence<?>> action) An implementation of XPath 3.1 map:for-each. -
Uses of ISequence in dev.metaschema.core.metapath.item
Methods in dev.metaschema.core.metapath.item that return ISequenceModifier and TypeMethodDescriptionISequence<?>ICollectionValue.contentsAsSequence()Get the collection value as a sequence.default ISequence<?>IItem.contentsAsSequence()default ISequence<?>ISequence.contentsAsSequence()ISequence.copyOf(Collection<? extends T> collection) Returns an unmodifiable sequence containing the items of the given Collection, in its iteration order.ISequence.empty()Get an empty sequence.static ISequence<IDocumentBasedNodeItem>ItemUtils.getDocumentNodeItems(DynamicContext dynamicContext, ISequence<?> items) Get the ancestor document nodes for the provided items.Apply the providedmapFunctionto each item in the sequence.ISequence.of()Returns an unmodifiable sequence containing zero elements.Returns an unmodifiable sequence containing the provideditems.ISequence.of(T item) Returns an unmodifiable sequence containing the provideditem.ISequence.of(T... items) Returns an unmodifiable sequence containing an arbitrary number of items.ISequence.of(T e1, T e2) Returns an unmodifiable sequence containing two items.ISequence.of(T e1, T e2, T e3) Returns an unmodifiable sequence containing three elements.ISequence.of(T e1, T e2, T e3, T e4) Returns an unmodifiable sequence containing four items.ISequence.of(T e1, T e2, T e3, T e4, T e5) Returns an unmodifiable sequence containing five items.ISequence.of(T e1, T e2, T e3, T e4, T e5, T e6) Returns an unmodifiable sequence containing six items.ISequence.of(T e1, T e2, T e3, T e4, T e5, T e6, T e7) Returns an unmodifiable sequence containing seven items.ISequence.of(T e1, T e2, T e3, T e4, T e5, T e6, T e7, T e8) Returns an unmodifiable sequence containing eight items.ISequence.of(T e1, T e2, T e3, T e4, T e5, T e6, T e7, T e8, T e9) Returns an unmodifiable sequence containing nine items.ISequence.of(T e1, T e2, T e3, T e4, T e5, T e6, T e7, T e8, T e9, T e10) Returns an unmodifiable sequence containing ten items.ISequence.ofCollection(Collection<ITEM_TYPE> items) Returns an unmodifiable sequence containing the provideditems.ISequence.reusable()Ensure the sequence is able to be iterated over multiple times.default ISequence<?>ICollectionValue.toSequence()Get the collection value as a sequence.default ISequence<?>IItem.toSequence()ISequence.toSequence()Get this sequence.Methods in dev.metaschema.core.metapath.item with parameters of type ISequenceModifier and TypeMethodDescriptionstatic ISequence<IDocumentBasedNodeItem>ItemUtils.getDocumentNodeItems(DynamicContext dynamicContext, ISequence<?> items) Get the ancestor document nodes for the provided items.static <T extends IItem>
TISequence.getFirstItem(ISequence<T> items, boolean requireSingleton) Retrieves the first item in a sequence.Apply the providedmapFunctionto each item in the sequence.voidDefaultItemWriter.writeSequence(ISequence<?> sequence) voidIItemWriter.writeSequence(ISequence<?> sequence) Write the provided sequence instance. -
Uses of ISequence in dev.metaschema.core.metapath.item.function
Methods in dev.metaschema.core.metapath.item.function that return ISequenceModifier and TypeMethodDescriptiondefault ISequence<?>IArrayItem.contentsAsSequence()default ISequence<?>IMapItem.contentsAsSequence()default ISequence<? extends IArrayItem<ITEM>>IArrayItem.toSequence()IMapItem.toSequence()Methods in dev.metaschema.core.metapath.item.function with parameters of type ISequenceModifier and TypeMethodDescriptionStream<? extends ICollectionValue>IKeySpecifier.lookup(IItem targetItem, DynamicContext dynamicContext, ISequence<?> focus) Perform a lookup on the provided target item. -
Uses of ISequence in dev.metaschema.core.metapath.type
Methods in dev.metaschema.core.metapath.type that return ISequenceModifier and TypeMethodDescriptionCheck that the provided sequence matches the occurrence.Test if the provided sequence matches this sequence type.Methods in dev.metaschema.core.metapath.type with parameters of type ISequenceModifier and TypeMethodDescriptiondefault ICast the provided sequence to this item type.Check that the provided sequence matches the occurrence.Test if the provided sequence matches this sequence type. -
Uses of ISequence in dev.metaschema.core.model.constraint
Methods in dev.metaschema.core.model.constraint that return ISequenceModifier and TypeMethodDescriptionISequence<? extends IDefinitionNodeItem<?,?>> IConstraint.matchTargets(IDefinitionNodeItem<?, ?> item, DynamicContext dynamicContext) Based on the providedcontextNodeItem, find all nodes matching the target expression.Methods in dev.metaschema.core.model.constraint with parameters of type ISequenceModifier and TypeMethodDescriptionvoidFindingCollectingConstraintValidationHandler.handleCardinalityMaximumViolation(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) voidIConstraintValidationHandler.handleCardinalityMaximumViolation(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) Handle a cardinality constraint maximum violation.voidLoggingConstraintValidationHandler.handleCardinalityMaximumViolation(ICardinalityConstraint constraint, INodeItem node, ISequence<? extends INodeItem> targets, DynamicContext dynamicContext) voidFindingCollectingConstraintValidationHandler.handleCardinalityMinimumViolation(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) voidIConstraintValidationHandler.handleCardinalityMinimumViolation(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) Handle a cardinality constraint minimum violation.voidLoggingConstraintValidationHandler.handleCardinalityMinimumViolation(ICardinalityConstraint constraint, INodeItem node, ISequence<? extends INodeItem> targets, DynamicContext dynamicContext) protected StringAbstractConstraintValidationHandler.newCardinalityMaximumViolationMessage(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) Construct a new violation message for the providedconstraintapplied to thenode.protected StringAbstractConstraintValidationHandler.newCardinalityMinimumViolationMessage(ICardinalityConstraint constraint, INodeItem target, ISequence<? extends INodeItem> testedItems, DynamicContext dynamicContext) Construct a new violation message for the providedconstraintapplied to thenode. -
Uses of ISequence in dev.metaschema.core.util
Methods in dev.metaschema.core.util that return types with arguments of type ISequenceModifier and TypeMethodDescriptionCustomCollectors.toSequence()ACollectorimplementation to generates a sequence from a stream of Metapath items.