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.compiler.ProcessorFactory pf) |
| Modifier and Type | Method and Description |
|---|---|
ProcessorFactory.ExperimentalWrapper |
experimental() |
DataProcessor |
onPath(java.lang.String path)
Create a
DataProcessor |
void |
setDistinguishedRootNode(java.lang.String name,
java.lang.String namespace)
Deprecated.
Use withDistinguishedRootNode. Since 2.6.0.
|
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. |
canProceed, getDiagnostics, isErrorpublic ProcessorFactory(org.apache.daffodil.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 void setDistinguishedRootNode(java.lang.String name,
java.lang.String namespace)
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.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.