class ProcessorFactory extends WithDiagnostics
Factory to create DataProcessor's, used for parsing data
- Alphabetic
- By Inheritance
- ProcessorFactory
- WithDiagnostics
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
getDiagnostics: Seq[Diagnostic]
Get the list of Diagnostic's created during the construction of the parent object
Get the list of Diagnostic's created during the construction of the parent object
- returns
list of Diagnostic's. May contain errors or warnings, and so may be non-empty even if WithDiagnostics.isError is false.
- Definition Classes
- WithDiagnostics
-
def
isError(): Boolean
Determine if any errors occurred in the creation of the parent object.
Determine if any errors occurred in the creation of the parent object.
- returns
true if it represents an error, false otherwise
- Definition Classes
- WithDiagnostics
-
def
onPath(path: String): DataProcessor
Create a DataProcessor
Create a DataProcessor
- 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.
-
def
withDistinguishedRootNode(name: String, namespace: String): ProcessorFactory
Get a new ProcessorFactory having a global element specified as the root of DFDL Schema to start parsing.
Get a new ProcessorFactory having a global element specified as the root of DFDL Schema to start parsing.
- 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.
-
object
experimental
Exposes the RootView object corresponding to this ProcessorFactory.
Exposes the RootView object corresponding to this ProcessorFactory. This can be used to start a walk using the walkFromRoot method in a DSOM Walker.
This is the documentation for the Apache Daffodil Scala API.
Package structure
org.apache.daffodil.sapi - Provides the classes necessary to compile DFDL schemas, parse and unparse files using the compiled objects, and retrieve results and parsing diagnostics
org.apache.daffodil.udf - Provides the classes necessary to create User Defined Functions to extend the DFDL expression language
org.apache.daffodil.runtime1.layers.api - Provides the classes necessary to create custom Layer extensions to DFDL.