class JsonInfosetOutputter extends InfosetOutputterProxy
Output the infoset as json text, written to a java.io.Writer
- Alphabetic
- By Inheritance
- JsonInfosetOutputter
- InfosetOutputterProxy
- InfosetOutputter
- InfosetOutputter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
JsonInfosetOutputter(writer: Writer, pretty: Boolean = true)
- writer
the java.io.Writer to write the json text to
- pretty
enable or disable pretty printing. Pretty printing will only inserts indentation and newlines where it will not affect the content of the json.
Value Members
-
def
endArray(diArray: DIArray): Boolean
Called by Daffodil internals to signify the end of an array of elements.
Called by Daffodil internals to signify the end of an array of elements.
- diArray
the array that is ended. Various fields of DIArray can be accessed to determine things like the name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
endComplex(diComplex: DIComplex): Boolean
Called by Daffodil internals to signify the end of a complex element.
Called by Daffodil internals to signify the end of a complex element.
- diComplex
the complex element that is ended. Various fields of DIComplex can be accessed to determine things like the nil, name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
endDocument(): Boolean
Called by Daffodil internals to signify the end of the infoset.
Called by Daffodil internals to signify the end of the infoset.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
endSimple(diSimple: DISimple): Boolean
Called by Daffodil internals to signify the end of a simple element.
Called by Daffodil internals to signify the end of a simple element.
- diSimple
the simple element that is ended. Various fields of DISimple can be accessed to determine things like the value, nil, name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
getStatus(): Status
- Definition Classes
- InfosetOutputter
-
val
infosetOutputter: infoset.JsonInfosetOutputter
- Definition Classes
- JsonInfosetOutputter → InfosetOutputterProxy
-
final
def
isNilled(diElement: DIElement): Boolean
- Definition Classes
- InfosetOutputter
-
def
reset(): Unit
Reset the internal state of this InfosetOutputter.
Reset the internal state of this InfosetOutputter. This should be called inbetween calls to the parse method.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
startArray(diArray: DIArray): Boolean
Called by Daffodil internals to signify the beginning of an array of elements.
Called by Daffodil internals to signify the beginning of an array of elements.
- diArray
the array that is started. Various fields of DIArray can be accessed to determine things like the name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
startComplex(diComplex: DIComplex): Boolean
Called by Daffodil internals to signify the beginning of a complex element.
Called by Daffodil internals to signify the beginning of a complex element.
- diComplex
the complex element that is started. Various fields of DIComplex can be accessed to determine things like the nil, name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
startDocument(): Boolean
Called by Daffodil internals to signify the beginning of the infoset.
Called by Daffodil internals to signify the beginning of the infoset.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
startSimple(diSimple: DISimple): Boolean
Called by Daffodil internals to signify the beginning of a simple element.
Called by Daffodil internals to signify the beginning of a simple element.
- diSimple
the simple element that is started. Various fields of DISimple can be accessed to determine things like the value, nil, name, namespace, etc.
- returns
true on sucess, false if there was an error and Daffodil should stop all future calls to the InfosetOutputter
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
-
def
status: Status
- Definition Classes
- InfosetOutputter
Apache Daffodil (incubating) Scala API
Packages
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.sapi.logger - Provides the classes necessary to receive logging messages from Daffodil.
org.apache.daffodil.sapi.debugger - Provides the classes necessary to perform parse tracing or create a custom debugger