package infoset
Defines various classes used control the representation of the infoset for parse and unparse. Classes that extend InfosetOutputter are provided to the DataProcessor.parse method to deteremine how to output an infoset. These classes are not guaranteed to be thread-safe. Classes that extend InfosetInputter are provided to the DataProcessor.unparse method to determine how to read in an infoset. A new InfosetOutputter is required for each call to unparse().
- Alphabetic
- By Inheritance
- infoset
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
InfosetInputter extends runtime1.infoset.InfosetInputter
Abstract class used to determine how the infoset representation should be input from a call to DataProcessor.unparse.
Abstract class used to determine how the infoset representation should be input from a call to DataProcessor.unparse. This uses a Cursor API, such that each call to advance/inspect must update a cursor value, minimizing allocations. Callers of advance/inspect are expected to copy out any information from advanceAccessor and inspectAccessor if they need to retain the information after a call to advance/inspect.
-
abstract
class
InfosetInputterProxy extends InfosetInputter
A proxy for InfosetInputters that are internal to Daffodil
-
abstract
class
InfosetOutputter extends runtime1.infoset.InfosetOutputter
Abstract class used to determine how the infoset representation should be output from a call to DataProcessor.parse.
Abstract class used to determine how the infoset representation should be output from a call to DataProcessor.parse. The Daffodil core will call the various methods of this class in an order appropriate to create an infoset representation.
Classes that extend InfosetOutputter are not guaranteed to be thread-safe.
-
abstract
class
InfosetOutputterProxy extends InfosetOutputter
A proxy for InfosetOutputters that are internal to Daffodil
-
class
JDOMInfosetInputter extends InfosetInputterProxy
InfosetInputter to read an infoset represented as an org.jdom2.Document
-
class
JDOMInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as an org.jdom2.Document
-
class
JsonInfosetInputter extends InfosetInputterProxy
InfosetInputter to read an infoset represented as JSON from a java.io.InputStream
-
class
JsonInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as JSON written to a java.io.OutputStream
-
class
NullInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter that does not build an infoset represention, ignoring all InfosetOutputter events
-
class
ScalaXMLInfosetInputter extends InfosetInputterProxy
InfosetInputter to read an infoset represented as a scala.xml.Node
-
class
ScalaXMLInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as a scala.xml.Node
-
class
W3CDOMInfosetInputter extends InfosetInputterProxy
InfosetInputter to read an infoset represented as an org.w3c.dom.Document
-
class
W3CDOMInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as an org.w3c.dom.Document
-
class
XMLTextInfosetInputter extends InfosetInputterProxy
InfosetInputter to read an infoset represented as XML from a java.io.InputStream
-
class
XMLTextInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as XML written to a java.io.OutputStream
Value Members
-
object
XMLTextEscapeStyle extends Enumeration
XMLTextEscapeStyle determines how to wrap values of elements of type xs:string
XMLTextEscapeStyle determines how to wrap values of elements of type xs:string
Standard - Special characters (quotation mark, ampersand, less-than, greater-than) in the text of xs:string elements are escaped, while non-special characters are written as is.
CDATA - The text of xs:string elements are wrapped in CDATA tags if the string contains whitespace or special characters (quotation mark, ampersand, less-than, greater-than)
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.