Package org.apache.daffodil.api
Interface ProcessorFactory
- All Superinterfaces:
WithDiagnostics
Factory to create
DataProcessor
s, used for parsing data-
Method Summary
Modifier and TypeMethodDescriptionforLanguage
(String language) ExperimentalCreate aDataProcessor
withDistinguishedRootNode
(String name, String namespace) Get a newProcessorFactory
Methods inherited from interface org.apache.daffodil.api.WithDiagnostics
getDiagnostics, isError
-
Method Details
-
withDistinguishedRootNode
Get a newProcessorFactory
- Parameters:
name
- name of the root nodenamespace
- 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
Create aDataProcessor
- 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 checkDataProcessor.isError
before using it.
-
forLanguage
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
-