public class ProcessorFactory extends WithDiagnostics
DataProcessor
's, used for parsing data
Do not use the ProcessorFactry constructor to create a ProcessorFactory
.
Instead, use Compiler.compileFile(java.io.File)
Modifier and Type | Class and Description |
---|---|
protected class |
ProcessorFactory.ExperimentalWrapper
Wrapper class used to mimic a Scala object namespacing experimental APIs
|
Constructor and Description |
---|
ProcessorFactory(org.apache.daffodil.core.compiler.ProcessorFactory pf) |
Modifier and Type | Method and Description |
---|---|
ProcessorFactory.ExperimentalWrapper |
experimental() |
DataProcessor |
onPath(java.lang.String path)
Create a
DataProcessor |
ProcessorFactory |
withDistinguishedRootNode(java.lang.String name,
java.lang.String namespace)
Get a new
ProcessorFactory having a global element specified as the root of DFDL Schema to start parsing. |
getDiagnostics, isError
public ProcessorFactory(org.apache.daffodil.core.compiler.ProcessorFactory pf)
public ProcessorFactory.ExperimentalWrapper experimental()
public DataProcessor onPath(java.lang.String path)
DataProcessor
path
- path to an element to use as the parsing root, relative to the distinguished root node. Currently, must be set to "/"DataProcessor
used to parse data. Must check WithDiagnostics.isError()
before using it.public ProcessorFactory withDistinguishedRootNode(java.lang.String name, java.lang.String namespace)
ProcessorFactory
having a global element specified as the root of DFDL Schema to start parsing.
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.