Class CsvToArrays

All Implemented Interfaces:
Callable, IFunctionWithRetainedParameterNames, FunctionItem, GroundedValue, Item, Sequence

public class CsvToArrays extends CsvFunction
Implements XPath 4 fn:csv-to-arrays() to parse CSV data from an xs:string into a sequence or arrays, with no interpretation of headers
  • Field Details

  • Constructor Details

    • CsvToArrays

      public CsvToArrays()
  • Method Details

    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Execute a dynamic call to the function
      Specified by:
      call in interface Callable
      Specified by:
      call in class CsvFunction
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as Sequences.
      Returns:
      the result of the evaluation, as a Sequence. It is the responsibility of the callee to ensure that the type of result conforms to the expected result type.
      Throws:
      XPathException - (should not happen)