Skip to content

Instantly share code, notes, and snippets.

@caoilte
caoilte / jaxb-in-scala-2_01.scala
Last active Aug 29, 2015
Bending JAXB to the will of Scala [2/2]
View jaxb-in-scala-2_01.scala
import scala.annotation.target.field
import javax.xml.bind.annotation._
import javax.xml.bind.annotation.adapters._
type xmlElement = XmlElement @field
type xmlTypeAdapter = XmlJavaTypeAdapter @field
/**
* NB As with the CustomOptionAdapter we've had to modify the type signature here,
@caoilte
caoilte / jaxb-in-scala-1_01.scala
Last active Aug 29, 2015
Bending JAXB to the will of Scala [1/2]
View jaxb-in-scala-1_01.scala
case class EntryType(entrytypeoption: Seq[scalaxb.DataRecord[Any]] = Nil,
attributes: Map[String, scalaxb.DataRecord[Any]]) extends FeedTypeOption
case class EntryType(entrytypeoption: Seq[scalaxb.DataRecord[Any]] = Nil,
xmlbase: Option[java.net.URI] = None,
xmllang: Option[String] = None,
attributes: Map[String, scalaxb.DataRecord[Any]]) extends FeedTypeOption
You can’t perform that action at this time.