You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
given:
case class EventListType(eventlisttypeoption: scalaxb.DataRecord[Any]*)
I can
for(e <- eventDoc.EPCISBody.EventList.get.eventlisttypeoption) {
e.value match {
case e: ObjectEventType =>
EventDebugServices.displayObjectEvent(e)
case e: AggregationEventType =>
EventDebugServices.displayAggregationEvent(e)
case e: QuantityEventType =>
EventDebugServices.displayQuantityEvent(e)
case e: TransactionEventType =>
EventDebugServices.displayTransactionEvent(e)
case u =>
System.out.println("Unknown Event: " + u)
}
}
Each e is of course a DataRecord.
How do I instantiate DataRecords to build back up the object graph from scratch?
If I say "DataRecord(event)" where event is say... a ObjectEventType the compiler complains with "could not find implicit value for evidence parameter of type scalaxb.CanWriteXML[com.ghx.tnt.core.event.ObjectEventType]"
thanks,
david...
The text was updated successfully, but these errors were encountered:
given:
case class EventListType(eventlisttypeoption: scalaxb.DataRecord[Any]*)
I can
Each e is of course a DataRecord.
How do I instantiate DataRecords to build back up the object graph from scratch?
If I say "DataRecord(event)" where event is say... a ObjectEventType the compiler complains with "could not find implicit value for evidence parameter of type scalaxb.CanWriteXML[com.ghx.tnt.core.event.ObjectEventType]"
thanks,
david...
The text was updated successfully, but these errors were encountered: