XSD to Gosu simple type mappings

For all elements that have simple types, and for all attributes in an XSD, Gosu creates properties based on the simple schema type of that item. The following table describes how Gosu maps XSD schema types to Gosu types. For schema types that are not listed in the table, Gosu uses the schema type’s supertype. For example, the schema type String is not listed, so Gosu uses the supertype anySimpleType.

Schema type

Gosu type

anySimpleType

java.lang.String

anyURI

java.net.URI

base64Binary

gw.xml.BinaryData

boolean

java.lang.Boolean

byte

java.lang.Byte

date

gw.xml.date.XmlDate

dateTime

gw.xml.date.XmlDateTime

decimal

java.math.BigDecimal

double

java.lang.Double

duration

gw.xml.date.XmlDuration

float

java.lang.Float

int

java.lang.Integer

gDay

gw.xml.date.XmlDay

gMonth

gw.xml.date.XmlMonth

gMonthDay

gw.xml.date.XmlMonthDay

gYearMonth

gw.xml.date.XmlYearMonth

gYear

gw.xml.date.XmlYear

hexBinary

byte[]

IDREF

gw.xml.XmlElement

integer

java.math.BigInteger

long

java.lang.Long

QName

javax.xml.namespace.QName

short

java.lang.Short

time

gw.xml.date.XmlTime

unsignedByte

java.lang.Short

unsignedInt

java.lang.Long

unsignedLong

java.math.BigInteger

unsignedShort

java.lang.Integer

Any type with enumeration facets

Schema-specific enumeration type

Any type derived by list of T

java.util.List<T>

Any type derived by union of (T1, T2,... Tn)

Greatest common supertype of (T1, T2,... Tn)