Skip to content

Instantly share code, notes, and snippets.

@eed3si9n
Created June 14, 2011 05:35
Show Gist options
  • Save eed3si9n/1024382 to your computer and use it in GitHub Desktop.
Save eed3si9n/1024382 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) {
lazy val int = singularbuiltintypetestsequence1.int
lazy val byte = singularbuiltintypetestsequence1.byte
lazy val short = singularbuiltintypetestsequence1.short
lazy val long = singularbuiltintypetestsequence1.long
lazy val float = singularbuiltintypetestsequence1.float
lazy val double = singularbuiltintypetestsequence1.double
lazy val integer = singularbuiltintypetestsequence1.integer
lazy val nonPositiveInteger = singularbuiltintypetestsequence1.nonPositiveInteger
lazy val negativeInteger = singularbuiltintypetestsequence1.negativeInteger
lazy val nonNegativeInteger = singularbuiltintypetestsequence1.nonNegativeInteger
lazy val positiveInteger = singularbuiltintypetestsequence2.positiveInteger
lazy val unsignedLong = singularbuiltintypetestsequence2.unsignedLong
lazy val unsignedInt = singularbuiltintypetestsequence2.unsignedInt
lazy val unsignedShort = singularbuiltintypetestsequence2.unsignedShort
lazy val unsignedByte = singularbuiltintypetestsequence2.unsignedByte
lazy val decimal = singularbuiltintypetestsequence2.decimal
lazy val boolean = singularbuiltintypetestsequence2.boolean
lazy val string = singularbuiltintypetestsequence2.string
lazy val normalizedString = singularbuiltintypetestsequence2.normalizedString
lazy val token = singularbuiltintypetestsequence2.token
lazy val language = singularbuiltintypetestsequence3.language
lazy val Name = singularbuiltintypetestsequence3.Name
lazy val NCName = singularbuiltintypetestsequence3.NCName
lazy val NMTOKEN = singularbuiltintypetestsequence3.NMTOKEN
lazy val NMTOKENS = singularbuiltintypetestsequence3.NMTOKENS
lazy val ID = singularbuiltintypetestsequence3.ID
lazy val IDREF = singularbuiltintypetestsequence3.IDREF
lazy val IDREFS = singularbuiltintypetestsequence3.IDREFS
lazy val ENTITY = singularbuiltintypetestsequence3.ENTITY
lazy val ENTITIES = singularbuiltintypetestsequence3.ENTITIES
lazy val base64Binary = singularbuiltintypetestsequence4.base64Binary
lazy val hexBinary = singularbuiltintypetestsequence4.hexBinary
lazy val anyType = singularbuiltintypetestsequence4.anyType
lazy val anySimpleType = singularbuiltintypetestsequence4.anySimpleType
}
case class SingularBuiltInTypeTestSequence1(int: Int,
byte: Byte,
short: Short,
long: Long,
float: Float,
double: Double,
integer: BigInt,
nonPositiveInteger: BigInt,
negativeInteger: BigInt,
nonNegativeInteger: BigInt)
case class SingularBuiltInTypeTestSequence2(positiveInteger: BigInt,
unsignedLong: BigInt,
unsignedInt: Long,
unsignedShort: Int,
unsignedByte: Int,
decimal: BigDecimal,
boolean: Boolean,
string: String,
normalizedString: String,
token: String)
case class SingularBuiltInTypeTestSequence3(language: String,
Name: String,
NCName: String,
NMTOKEN: String,
NMTOKENS: Seq[String],
ID: String,
IDREF: String,
IDREFS: Seq[String],
ENTITY: String,
ENTITIES: Seq[String])
case class SingularBuiltInTypeTestSequence4(base64Binary: scalaxb.Base64Binary,
hexBinary: scalaxb.HexBinary,
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 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
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