arosien commented on PR #1057: URL: https://github.com/apache/daffodil/pull/1057#issuecomment-1930452219
> With the changes to scalaxb, is this ready for re-review? Yes! See some [infoset translation](https://github.com/apache/daffodil/pull/1057#discussion_r1480298851) and here is the top-level test suite: ```scala case class TestSuite(var testSuiteChoices: Seq[scalaxb.DataRecord[Any]] = Nil, var attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) { def suiteName = attributes.get("@suiteName") map { _.as[String]} def suiteName_=(_value: Option[String])(implicit evidence: scalaxb.CanWriteXML[Option[String]]) = attributes += "@suiteName" -> scalaxb.DataRecord(_value) def ID = attributes.get("@ID") map { _.as[String]} def ID_=(_value: Option[String])(implicit evidence: scalaxb.CanWriteXML[Option[String]]) = attributes += "@ID" -> scalaxb.DataRecord(_value) def description = attributes.get("@description") map { _.as[String]} def description_=(_value: Option[String])(implicit evidence: scalaxb.CanWriteXML[Option[String]]) = attributes += "@description" -> scalaxb.DataRecord(_value) def defaultRoundTrip = attributes.get("@defaultRoundTrip") map { _.as[RoundTripType]} def defaultRoundTrip_=(_value: Option[RoundTripType])(implicit evidence: scalaxb.CanWriteXML[Option[RoundTripType]]) = attributes += "@defaultRoundTrip" -> scalaxb.DataRecord(_value) def defaultValidation = attributes.get("@defaultValidation") map { _.as[ValidationType]} def defaultValidation_=(_value: Option[ValidationType])(implicit evidence: scalaxb.CanWriteXML[Option[ValidationType]]) = attributes += "@defaultValidation" -> scalaxb.DataRecord(_value) def defaultConfig = attributes.get("@defaultConfig") map { _.as[String]} def defaultConfig_=(_value: Option[String])(implicit evidence: scalaxb.CanWriteXML[Option[String]]) = attributes += "@defaultConfig" -> scalaxb.DataRecord(_value) def defaultImplementations = attributes.get("@defaultImplementations") map { _.as[Seq[ImplementationItem]]} def defaultImplementations_=(_value: Option[Seq[ImplementationItem]])(implicit evidence: scalaxb.CanWriteXML[Option[Seq[ImplementationItem]]]) = attributes += "@defaultImplementations" -> scalaxb.DataRecord(_value) } ``` Users of these data structures will need to build up, for example, `ParserTestCaseType` values, serialize them via `scalaxb.toXML`, and push them into the `testSuiteChoices` member. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
