Interface ProcessorFactory

All Superinterfaces:
WithDiagnostics

public interface ProcessorFactory extends WithDiagnostics
Factory to create DataProcessors, used for parsing data
  • Method Details

    • withDistinguishedRootNode

      ProcessorFactory withDistinguishedRootNode(String name, String namespace)
      Parameters:
      name - name of the root node
      namespace - namespace of the root node. Set to empty string to specify no namespace. Set to to NULL to figure out the namespace.
      Returns:
      a new ProcessorFactory having a global element specified as the root of DFDL Schema to start parsing.
    • onPath

      DataProcessor onPath(String path)
      Create a DataProcessor
      Parameters:
      path - path to an element to use as the parsing root, relative to the distinguished root node. Currently, must be set to "/"
      Returns:
      DataProcessor used to parse data. Must check DataProcessor.isError before using it.
    • forLanguage

      CodeGenerator forLanguage(String language)
      Experimental
      Parameters:
      language - source language for generated code (you can use only "c" at this time)
      Returns:
      a CodeGenerator to generate code from a DFDL schema to parse or unparse data