Package

org.apache.daffodil

tdml

Permalink

package tdml

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class BitOrderType extends AnyRef

    Permalink
  2. class BitsDocumentPart extends DataDocumentPart

    Permalink
  3. class ByteDocumentPart extends DataDocumentPart

    Permalink
  4. sealed abstract class ByteOrderType extends AnyRef

    Permalink
  5. case class DFDLInfoset(di: Node, parent: Infoset) extends Product with Serializable

    Permalink
  6. class DFDLTestSuite extends Logging with HasSetDebugger

    Permalink

    TDML test suite runner

    TDML test suite runner

    Keep this independent of Daffodil, so that it can be used to run tests against other DFDL implementations as well. E.g., it should only need an API specified as a collection of Scala traits, and some simple way to inject dependency on one factory to create processors.

    Use the validateTDMLFile arg to bypass validation of the TDML document itself.

    This is used for testing whether one can detect validation errors in the DFDL schema.

    Without this, you can't get to the validation errors, because it rejects the TDML file itself.

    defaultRoundTripDefault if true the round trip default for the test suite will be taken from this value if it is not specified on the testSuite itself.

  7. sealed abstract class DataDocumentPart extends DocumentPart

    Permalink

    Base class for all document parts that contain data directly expressed in the XML

  8. case class DefinedConfig(xml: Node, parent: DFDLTestSuite) extends Product with Serializable

    Permalink
  9. case class DefinedSchema(xml: Node, parent: DFDLTestSuite) extends Product with Serializable

    Permalink
  10. case class Document(d: NodeSeq, parent: TestCase) extends Product with Serializable

    Permalink
  11. sealed abstract class DocumentContentType extends AnyRef

    Permalink
  12. sealed abstract class DocumentPart extends AnyRef

    Permalink

    Base class for all document parts

  13. abstract class ErrorWarningBase extends AnyRef

    Permalink
  14. case class ExpectedErrors(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  15. case class ExpectedValidationErrors(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  16. case class ExpectedWarnings(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  17. class FileDocumentPart extends DocumentPart with Logging

    Permalink
  18. case class Infoset(i: NodeSeq, parent: TestCase) extends Product with Serializable

    Permalink
  19. case class ParserTestCase(ptc: NodeSeq, parentArg: DFDLTestSuite) extends TestCase with Product with Serializable

    Permalink
  20. sealed trait RoundTrip extends AnyRef

    Permalink

    Parses and runs tests expressed in IBM's contributed tdml "Test Data Markup Language"

  21. class Runner extends AnyRef

    Permalink

    Needs to be thread-safe (i.e., use all thread-local state) so that test can be run in parallel.

    Needs to be thread-safe (i.e., use all thread-local state) so that test can be run in parallel.

    Note however, that each thread will get its own copy of the DFDLTestSuite

  22. class SchemaCache[CachedType, DiagnosticType] extends AnyRef

    Permalink

    A cache of things associated with URISchemaSources.

    A cache of things associated with URISchemaSources.

    Recompiles if URI is a file and the modification date has changed.

    Thread safe so that multiple threads can share a compiled schema for the same URI. One thread will wait while the other compiles it.

  23. class TDMLException extends Exception

    Permalink
  24. class TDMLInfosetInputter extends InfosetInputter

    Permalink
  25. class TDMLInfosetOutputter extends InfosetOutputter

    Permalink
  26. abstract class TestCase extends Logging

    Permalink
  27. class TextDocumentPart extends DataDocumentPart

    Permalink
  28. case class UnparserTestCase(ptc: NodeSeq, parentArg: DFDLTestSuite) extends TestCase with Product with Serializable

    Permalink

Value Members

  1. object ContentTypeBits extends DocumentContentType with Product with Serializable

    Permalink
  2. object ContentTypeByte extends DocumentContentType with Product with Serializable

    Permalink
  3. object ContentTypeFile extends DocumentContentType with Product with Serializable

    Permalink
  4. object ContentTypeText extends DocumentContentType with Product with Serializable

    Permalink
  5. object ENoWarnTDML

    Permalink
  6. object LSBFirst extends BitOrderType with Product with Serializable

    Permalink
  7. object LTR extends ByteOrderType with Product with Serializable

    Permalink
  8. object MSBFirst extends BitOrderType with Product with Serializable

    Permalink
  9. object NoRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Test is just a parse test, or just an unparse, with no round trip involved.

  10. object OnePassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Test round trips with a single pass.

    Test round trips with a single pass. Unparse produces exactly the original data.

  11. object RTL extends ByteOrderType with Product with Serializable

    Permalink
  12. object Runner

    Permalink

    Creates the DFDLTestSuite object lazily, so the file isn't read into memory and parsed unless you actually try to run a test using it.

    Creates the DFDLTestSuite object lazily, so the file isn't read into memory and parsed unless you actually try to run a test using it.

    Creates the DFDLTestSuite only once.

    Provides a reset method to be called from @AfterClass to drop the test suite object (and avoid memory leak).

    Note: I have verified that this does get called after each test suite has been run.

    defaultRoundTripDefault if true the round trip default for the test suite will be this value, if the test suite does not specify defaultRoundTrip attribute.

    defaultRoundTripDefaultDefault

  13. object SchemaDataProcessorCache extends SchemaCache[(Seq[Diagnostic], DataProcessor), Seq[Diagnostic]]

    Permalink

    Cache that saves the compiled data processor objects (memory structures, not files of the serialized representation)

  14. object ThreePassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Unparse doesn't produce original data, parsing it doesn't produce the same infoset, but an equivalent infoset which if unparsed, reproduces the first unparse output.

  15. object TwoPassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Unparse doesn't produce original data, but equivalent canonical data which if reparsed in a second parse pass, produces the same infoset as the first parse.

  16. object UTF8Encoder

    Permalink
  17. object VerifyTestCase

    Permalink

Ungrouped