Package org.apache.daffodil.api
Interface ProcessorFactory
- All Superinterfaces:
WithDiagnostics
Factory to create
DataProcessors, used for parsing data-
Method Summary
Modifier and TypeMethodDescriptionforLanguage(String language) ExperimentalCreate aDataProcessorwithDistinguishedRootNode(String name, String namespace) Get a newProcessorFactoryMethods 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
ProcessorFactoryhaving 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:
DataProcessorused to parse data. Must checkDataProcessor.isErrorbefore using it.
-
forLanguage
Experimental- Parameters:
language- source language for generated code (you can use only "c" at this time)- Returns:
- a
CodeGeneratorto generate code from a DFDL schema to parse or unparse data
-