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
list of Diagnostic's. May contain errors or warnings, and so may be non-empty even if WithDiagnostics#isError is false.
Determine if any errors occurred in the creation of the parent object.
Determine if any errors occurred in the creation of the parent object.
true if no errors occurred, false otherwise
Parse input data without specifying a length
Parse input data without specifying a length
Use this when you don't know how big the data is. Note that the isAtEnd() does not work properly and will always return -1. If you need isAtEnd() to work, you must use DataProcessor#parse(input:java\.nio\.channels\.ReadableByteChannel,output:org\.apache\.daffodil\.sapi\.infoset\.InfosetOutputter)* method that accepts a long and specify the length of the data.
data to be parsed
the InfosetOutputter that will be used to output the infoset
an object which contains the result, and/or diagnostic information.
Parse input data with a specified length
Parse input data with a specified length
data to be parsed
the InfosetOutputter that will be used to output the infoset
the length of the input data in bits. This must be the actual length in bits if you want the location().isAtEnd() function to work. If value is -1, the isAtEnd() function will always return true.
an object which contains the result, and/or diagnostic information.
Save the DataProcessor
Save the DataProcessor
The resulting output can be reloaded by Compiler#reload(savedParser:java\.nio\.channels\.ReadableByteChannel)*.
the byte channel to write the DataProcessor to
Set the debugger runer
Set the debugger runer
debugger runner
Enable/disable debugging.
Enable/disable debugging.
Before enabling, DataProcessor#setDebugger must be called with a non-null debugger.
Set the value of multiple DFDL variables
Set the value of multiple DFDL variables
a map of key/value pairs, where the key is the variable name, and the value is the value of the variable. The key may be preceded by a string of the form "{namespace}" to define a namespace for the variable. If preceded with "{}", then no namespace is used. If not preceded by anything, then Daffodil will figure out the namespace.
Read external variables from a Daffodil configuration file
Read external variables from a Daffodil configuration file
file to read DFDL variables from.
Daffodil Configuration File - Daffodil configuration file format
Set validation mode
Set validation mode
mode to control validation
Unparse an InfosetInputter
Unparse an InfosetInputter
the infoset inputter to use for unparsing
the byte channel to write the data to
an object with contains diagnostic information
Determine if this object can be used in any future parse activities
Determine if this object can be used in any future parse activities
true it is safe to proceed, false otherwise
(Since version 2.0.0) Use !isError() to determine if it is safe to proceed
(Since version 2.0.0) Use parse(ReadableByteChannel, InfosetOutputter) to parse the data and get the infoset representation from the InfosetOutputter instead of ParseResult#result()
(Since version 2.0.0) Use parse(ReadableByteChannel, InfosetOutputter, long) to parse the data and get the infoset representation from the InfosetOutputter instead of ParseResult#result()
Unparse a scala.xml.Node infoset
Unparse a scala.xml.Node infoset
the byte channel to write the data to
the infoset to unparse, as a scala xml Node
an object with contains the result and/or diagnostic information
(Since version 2.0.0) Use unparse(InfosetInputter, WritableByteChannel)
Compiled version of a DFDL Schema, used to parse data and get the DFDL infoset