Skip to content

Instantly share code, notes, and snippets.

@eed3si9n
Created October 11, 2011 04:51
Show Gist options
  • Save eed3si9n/1277322 to your computer and use it in GitHub Desktop.
Save eed3si9n/1277322 to your computer and use it in GitHub Desktop.
// Generated by <a href="http://scalaxb.org/">scalaxb</a>.
package general
case class SingularBuiltInTypeTest(singularbuiltintypetestsequence1: general.SingularBuiltInTypeTestSequence1,
singularbuiltintypetestsequence2: general.SingularBuiltInTypeTestSequence2,
singularbuiltintypetestsequence3: general.SingularBuiltInTypeTestSequence3,
singularbuiltintypetestsequence4: general.SingularBuiltInTypeTestSequence4,
singularbuiltintypetestsequence5: general.SingularBuiltInTypeTestSequence5) {
lazy val string = singularbuiltintypetestsequence1.string
lazy val boolean = singularbuiltintypetestsequence1.boolean
lazy val decimal = singularbuiltintypetestsequence1.decimal
lazy val float = singularbuiltintypetestsequence1.float
lazy val double = singularbuiltintypetestsequence1.double
lazy val duration = singularbuiltintypetestsequence1.duration
lazy val dateTime = singularbuiltintypetestsequence1.dateTime
lazy val time = singularbuiltintypetestsequence1.time
lazy val date = singularbuiltintypetestsequence1.date
lazy val gYearMonth = singularbuiltintypetestsequence1.gYearMonth
lazy val gYear = singularbuiltintypetestsequence2.gYear
lazy val gMonthDay = singularbuiltintypetestsequence2.gMonthDay
lazy val gDay = singularbuiltintypetestsequence2.gDay
lazy val gMonth = singularbuiltintypetestsequence2.gMonth
lazy val hexBinary = singularbuiltintypetestsequence2.hexBinary
lazy val base64Binary = singularbuiltintypetestsequence2.base64Binary
lazy val anyURI = singularbuiltintypetestsequence2.anyURI
lazy val QName = singularbuiltintypetestsequence2.QName
lazy val NOTATION = singularbuiltintypetestsequence2.NOTATION
lazy val normalizedString = singularbuiltintypetestsequence2.normalizedString
lazy val token = singularbuiltintypetestsequence3.token
lazy val language = singularbuiltintypetestsequence3.language
lazy val NMTOKEN = singularbuiltintypetestsequence3.NMTOKEN
lazy val NMTOKENS = singularbuiltintypetestsequence3.NMTOKENS
lazy val Name = singularbuiltintypetestsequence3.Name
lazy val NCName = singularbuiltintypetestsequence3.NCName
lazy val ID = singularbuiltintypetestsequence3.ID
lazy val IDREF = singularbuiltintypetestsequence3.IDREF
lazy val IDREFS = singularbuiltintypetestsequence3.IDREFS
lazy val ENTITY = singularbuiltintypetestsequence3.ENTITY
lazy val ENTITIES = singularbuiltintypetestsequence4.ENTITIES
lazy val integer = singularbuiltintypetestsequence4.integer
lazy val nonPositiveInteger = singularbuiltintypetestsequence4.nonPositiveInteger
lazy val negativeInteger = singularbuiltintypetestsequence4.negativeInteger
lazy val long = singularbuiltintypetestsequence4.long
lazy val int = singularbuiltintypetestsequence4.int
lazy val short = singularbuiltintypetestsequence4.short
lazy val byte = singularbuiltintypetestsequence4.byte
lazy val nonNegativeInteger = singularbuiltintypetestsequence4.nonNegativeInteger
lazy val unsignedLong = singularbuiltintypetestsequence4.unsignedLong
lazy val unsignedInt = singularbuiltintypetestsequence5.unsignedInt
lazy val unsignedShort = singularbuiltintypetestsequence5.unsignedShort
lazy val unsignedByte = singularbuiltintypetestsequence5.unsignedByte
lazy val positiveInteger = singularbuiltintypetestsequence5.positiveInteger
lazy val anyType = singularbuiltintypetestsequence5.anyType
lazy val anySimpleType = singularbuiltintypetestsequence5.anySimpleType
}
case class SingularBuiltInTypeTestSequence1(string: String,
boolean: Boolean,
decimal: BigDecimal,
float: Float,
double: Double,
duration: javax.xml.datatype.Duration,
dateTime: javax.xml.datatype.XMLGregorianCalendar,
time: javax.xml.datatype.XMLGregorianCalendar,
date: javax.xml.datatype.XMLGregorianCalendar,
gYearMonth: javax.xml.datatype.XMLGregorianCalendar)
case class SingularBuiltInTypeTestSequence2(gYear: javax.xml.datatype.XMLGregorianCalendar,
gMonthDay: javax.xml.datatype.XMLGregorianCalendar,
gDay: javax.xml.datatype.XMLGregorianCalendar,
gMonth: javax.xml.datatype.XMLGregorianCalendar,
hexBinary: scalaxb.HexBinary,
base64Binary: scalaxb.Base64Binary,
anyURI: java.net.URI,
QName: javax.xml.namespace.QName,
NOTATION: javax.xml.namespace.QName,
normalizedString: String)
case class SingularBuiltInTypeTestSequence3(token: String,
language: String,
NMTOKEN: String,
NMTOKENS: Seq[String],
Name: String,
NCName: String,
ID: String,
IDREF: String,
IDREFS: Seq[String],
ENTITY: String)
case class SingularBuiltInTypeTestSequence4(ENTITIES: Seq[String],
integer: BigInt,
nonPositiveInteger: BigInt,
negativeInteger: BigInt,
long: Long,
int: Int,
short: Short,
byte: Byte,
nonNegativeInteger: BigInt,
unsignedLong: BigInt)
case class SingularBuiltInTypeTestSequence5(unsignedInt: Long,
unsignedShort: Int,
unsignedByte: Int,
positiveInteger: BigInt,
anyType: scalaxb.DataRecord[Any],
anySimpleType: scalaxb.DataRecord[Any])
case class SingularComplexTypeTest(person1: general.Person,
person2: Option[general.Person],
person3: Option[general.Person],
person4: Option[Option[general.Person]],
person5: Seq[general.Person],
person6: Seq[Option[general.Person]])
case class NillablePersonStarTest(person: Option[general.Person]*)
case class ChoiceComplexTypeTest(choicecomplextypetestoption: scalaxb.DataRecord[general.ChoiceComplexTypeTestOption],
choicecomplextypetestoption2: scalaxb.DataRecord[Option[general.ChoiceComplexTypeTestOption2]],
choicecomplextypetestoption3: Option[scalaxb.DataRecord[general.ChoiceComplexTypeTestOption3]],
choicecomplextypetestoption4: Option[scalaxb.DataRecord[Option[general.ChoiceComplexTypeTestOption4]]],
choicecomplextypetestoption5: Seq[scalaxb.DataRecord[general.ChoiceComplexTypeTestOption5]],
choicecomplextypetestoption6: Seq[scalaxb.DataRecord[Option[general.ChoiceComplexTypeTestOption6]]])
trait ChoiceComplexTypeTestOption
trait ChoiceComplexTypeTestOption2
trait ChoiceComplexTypeTestOption3
trait ChoiceComplexTypeTestOption4
trait ChoiceComplexTypeTestOption5
trait ChoiceComplexTypeTestOption6
case class SingularSimpleTypeTest(number1: Long,
number2: Option[Long],
number3: Option[Long],
number4: Option[Option[Long]],
number5: Seq[Long],
number6: Seq[Option[Long]],
milk1: general.MilkType,
milk2: Option[general.MilkType],
milk3: Option[general.MilkType],
milk4: Option[Option[general.MilkType]],
milk5: Seq[general.MilkType],
milk6: Seq[Option[general.MilkType]],
attr1: Option[Long] = None,
attr2: Option[general.MilkType] = None)
case class ListTest(numbers1: Seq[Long],
numbers2: Option[Seq[Long]],
numbers3: Option[Seq[Long]],
numbers4: Option[Option[Seq[Long]]],
numbers5: Seq[Seq[Long]],
numbers6: Seq[Option[Seq[Long]]],
numbers7: Seq[Long],
milk1: Seq[general.MilkType],
milk2: Option[Seq[general.MilkType]],
milk3: Option[Seq[general.MilkType]],
milk4: Option[Option[Seq[general.MilkType]]],
milk5: Seq[Seq[general.MilkType]],
milk6: Seq[Option[Seq[general.MilkType]]],
milk7: Seq[general.MilkType],
attr1: Option[Seq[Long]] = None,
attr2: Option[Seq[general.MilkType]] = None)
case class AnyTest(person1: general.Person,
any: scalaxb.DataRecord[Any],
anytestoption: scalaxb.DataRecord[Option[Any]],
person3: Option[general.Person],
any2: Option[scalaxb.DataRecord[Any]],
anytestoption2: Option[scalaxb.DataRecord[Option[Any]]],
any3: Seq[scalaxb.DataRecord[Any]],
person5: Seq[general.Person])
trait AnyTestOption
trait AnyTestOption2
case class AnyTypeTest(any1: scalaxb.DataRecord[Any],
any2: scalaxb.DataRecord[Option[Any]],
any3: Option[scalaxb.DataRecord[Any]],
any4: Option[scalaxb.DataRecord[Option[Any]]],
any5: Seq[scalaxb.DataRecord[Any]],
any6: Seq[scalaxb.DataRecord[Option[Any]]])
case class LongAllTest(all: Map[String, scalaxb.DataRecord[Any]]) {
lazy val address1 = all("address1").as[general.Address]
lazy val address2 = all.get("address2") map { _.as[general.Address] }
lazy val string3 = all("string3").as[String]
lazy val string4 = all("string4").as[String]
lazy val string5 = all("string5").as[String]
lazy val string6 = all("string6").as[String]
lazy val string7 = all("string7").as[String]
lazy val string8 = all("string8").as[String]
lazy val string9 = all("string9").as[String]
lazy val string10 = all("string10").as[String]
lazy val string11 = all("string11").as[String]
lazy val string12 = all("string12").as[String]
lazy val string13 = all("string13").as[String]
lazy val string14 = all("string14").as[String]
lazy val string15 = all("string15").as[String]
lazy val string16 = all("string16").as[String]
lazy val string17 = all("string17").as[String]
lazy val string18 = all("string18").as[String]
lazy val string19 = all("string19").as[String]
lazy val string20 = all("string20").as[String]
lazy val string21 = all("string21").as[String]
lazy val string22 = all("string22").as[String]
lazy val string23 = all("string23").as[String]
lazy val string24 = all("string24").as[String]
lazy val string25 = all("string25").as[String]
lazy val string26 = all("string26").as[String]
lazy val string27 = all("string27").as[String]
lazy val string28 = all("string28").as[String]
lazy val string29 = all("string29").as[String]
lazy val string30 = all("string30").as[String]
}
trait LongAllTestAll
case class EmptyComplexTypeTest()
case class EmptySequenceTest()
case class EmptySequenceGroupTest()
case class EmptyChoiceGroupTest(emptychoicegrouptestoption: Option[scalaxb.DataRecord[Any]])
trait EmptyChoiceGroupTestOption
case class TopLevelMultipleSeqTest(toplevelmultipleseqtestsequence1: general.TopLevelMultipleSeqTestSequence1*)
case class TopLevelMultipleSeqTestSequence1(firstName: String,
lastName: String)
case class TopLevelOptionalSeqTest(topleveloptionalseqtestsequence1: Option[general.TopLevelOptionalSeqTestSequence1])
case class TopLevelOptionalSeqTestSequence1(firstName: String,
lastName: String)
case class TopLevelMultipleSeqAnyTest(mixed: Seq[scalaxb.DataRecord[Any]])
case class ProtocolType(protocoltypeoption: scalaxb.DataRecord[Any])
trait ProtocolTypeOption
case class Person(firstName: String,
lastName: String) extends ChoiceComplexTypeTestOption with ChoiceComplexTypeTestOption2 with ChoiceComplexTypeTestOption3 with ChoiceComplexTypeTestOption4 with ChoiceComplexTypeTestOption5 with ChoiceComplexTypeTestOption6 with AnyTestOption with AnyTestOption2
case class Address(street: String,
city: String,
state: String) extends ChoiceComplexTypeTestOption with ChoiceComplexTypeTestOption2 with ChoiceComplexTypeTestOption3 with ChoiceComplexTypeTestOption4 with ChoiceComplexTypeTestOption5 with ChoiceComplexTypeTestOption6
trait MilkType
object MilkType {
def fromString(value: String): MilkType = value match {
case "WHOLE" => WHOLE
case "SKIM" => SKIM
}
}
case object WHOLE extends MilkType { override def toString = "WHOLE" }
case object SKIM extends MilkType { override def toString = "SKIM" }
case class ComplexListOfMilk(value: Seq[general.MilkType],
id: Option[String] = None,
classValue: Option[Seq[String]] = None)
case class ComplexListOfBuiltInType(value: Seq[Long],
id: Option[String] = None,
classValue: Option[Seq[String]] = None)
case class Other(any: scalaxb.DataRecord[Any]*)
case class DupeSequenceTest(street: String,
other: Option[general.Other])
case class Other2(any: scalaxb.DataRecord[Any]*)
case class DupeSequenceTest2(street: String,
other: Option[general.Other2])
case class SubstitutionGroupTest(SubstitutionGroup: scalaxb.DataRecord[Any])
case class LongAttributeTest(attributes: Map[String, scalaxb.DataRecord[Any]] = Map()) {
lazy val milk1 = attributes.get("@milk1") map { _.as[MilkType] }
lazy val string2 = attributes.get("@string2") map { _.as[String] }
lazy val string3 = attributes.get("@string3") map { _.as[String] }
lazy val string4 = attributes.get("@string4") map { _.as[String] }
lazy val string5 = attributes.get("@string5") map { _.as[String] }
lazy val string6 = attributes.get("@string6") map { _.as[String] }
lazy val string7 = attributes.get("@string7") map { _.as[String] }
lazy val string8 = attributes.get("@string8") map { _.as[String] }
lazy val string9 = attributes.get("@string9") map { _.as[String] }
lazy val string10 = attributes.get("@string10") map { _.as[String] }
lazy val string11 = attributes.get("@string11") map { _.as[String] }
lazy val string12 = attributes.get("@string12") map { _.as[String] }
lazy val string13 = attributes.get("@string13") map { _.as[String] }
lazy val string14 = attributes.get("@string14") map { _.as[String] }
lazy val string15 = attributes.get("@string15") map { _.as[String] }
lazy val string16 = attributes.get("@string16") map { _.as[String] }
lazy val string17 = attributes.get("@string17") map { _.as[String] }
lazy val string18 = attributes.get("@string18") map { _.as[String] }
lazy val string19 = attributes.get("@string19") map { _.as[String] }
lazy val string20 = attributes.get("@string20") map { _.as[String] }
lazy val string21 = attributes.get("@string21") map { _.as[String] }
lazy val string22 = attributes.get("@string22") map { _.as[String] }
lazy val string23 = attributes.get("@string23") map { _.as[String] }
lazy val string24 = attributes.get("@string24") map { _.as[String] }
lazy val string25 = attributes.get("@string25") map { _.as[String] }
lazy val string26 = attributes.get("@string26") map { _.as[String] }
lazy val string27 = attributes.get("@string27") map { _.as[String] }
lazy val string28 = attributes.get("@string28") map { _.as[String] }
lazy val string29 = attributes.get("@string29") map { _.as[String] }
lazy val string30 = attributes.get("@string30") map { _.as[String] }
lazy val id = attributes.get("@id") map { _.as[String] }
lazy val classValue = attributes.get("@class") map { _.as[Seq[String]] }
}
case class AnySimpleTypeExtension(value: scalaxb.DataRecord[Any],
attributes: Map[String, scalaxb.DataRecord[Any]])
case class DupeElem()
case class DupeElem2(dupeElem: general.DupeElem) extends DupeElemGroup1Option
case class DupeElem3()
case class DupeElem4(dupeElem: general.DupeElem3) extends DupeElemGroup2Option
case class JpegPictureType(value: scalaxb.Base64Binary,
xmimecontentType: Option[String] = None) extends xmlmime.Base64Binaryable
case class MimeTest(JpegPicture: general.JpegPictureType)
trait DupeElemGroup2Option
trait DupeElemGroup1Option
case class EmptySeqGroupSequence()
/**
core attributes common to most elements
id document-wide unique id
*/
case class Coreattrs(id: Option[String] = None,
classValue: Option[Seq[String]] = None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment