Chapter 4. XSD Simple Type Mappings

Table of Contents

Atomic, User-Defined types
Lists
Unions
Enumeration

The following table describes the mappings for the XSD built-in simple types.

XSD Built-In Type C# Type Java Type
anyURIstringstring
base64Binarycom.objsys.xbinder.runtime.XBByteArraycom.objsys.xbinder.runtime.XBByteArray
booleanboolboolean
bytesbytebyte
datestringjavax.xml.datatype.XMLGregorianCalendar
dateTimestringjavax.xml.datatype.XMLGregorianCalendar
decimaldecimaljava.math.BigDecimal
doubledoubledouble
durationcom.objsys.xbinder.runtime.XBDurationjavax.xml.datatype.Duration
ENTITIESstring[]string[]
ENTITYstringstring
floatfloatfloat
gDaystringjavax.xml.datatype.XMLGregorianCalendar
gMonthstringjavax.xml.datatype.XMLGregorianCalendar
gMonthDaystringjavax.xml.datatype.XMLGregorianCalendar
gYearstringjavax.xml.datatype.XMLGregorianCalendar
gYearMonthstringjavax.xml.datatype.XMLGregorianCalendar
hexBinarystringcom.objsys.xbinder.runtime.XBByteArray
IDstringstring
IDREFstringstring
IDREFSstring[]String[]
integerintint
intintint
languagestringstring
longlonglong
Namestringstring
NCNamestringstring
negativeIntegerintint
NMTOKENstringstring
NMTOKENSstring[]string[]
nonNegativeIntegeruintint
nonPositiveIntegerintint
normalizedStringstringstring
positiveIntegeruintint
shortshortshort
stringstringstring
timestringjavax.xml.datatype.XMLGregorianCalendar
tokenstringString
unsignedBytebyteshort
unsignedShortushortint
unsignedIntuintlong
unsignedLongulongjava.math.BigInteger