In this guide, the UML class and object diagrams use the primitive data type names such as string and integer, without the XML Schema definition namespace prefix (xsd:). The vSphere API Reference contains the complete data type name, such as xsd:string. The data types map to the primitive data types of the programming language used for the client application.
The following table lists some of the more common XML primitive data type mappings.
XML Schema | Java | Open API |
---|---|---|
xsd:base64binary | byte[] | string (format: byte) |
xsd:boolean | boolean | boolean |
xsd:byte | byte | integer (min: -128, max: 127) |
xsd:dateTime | java.util.Calendar | string (format: date-time) |
xsd:decimal | java.math.BigDecimal | |
xsd:double | double | number (format: double) |
xsd:float | float | number (format: float) |
xsd:int | int | integer (format: int32) |
xsd:string | java.lang.String | string |