uCosminexus Application Server, Web Service Development Guide
You can specify the following data types for the POJO fields and the Bean property.
Table 18-3 Available data types for the POJO fields and the Bean property (JSON to POJO mapping)
| No. | Data | |
|---|---|---|
| 1 | Primitive | int |
| 2 | short | |
| 3 | long | |
| 4 | float | |
| 5 | double | |
| 6 | char | |
| 7 | byte | |
| 8 | boolean | |
| 9 | Wrapper class | Integer |
| 10 | Short | |
| 11 | Long | |
| 12 | Float | |
| 13 | Double | |
| 14 | Character | |
| 15 | Byte | |
| 16 | Boolean | |
| 17 | java.lang.String | |
| 18 | java.math.BigInteger | |
| 19 | java.math.BigDecimal | |
| 20 | java.util.Date | |
| 21 | java.util.Calendar | |
| 22 | java.lang.Enum | |
| 23 | POJO#1 | |
| 24 | java.util.List<T>#2 | |
| 25 | java.util.Set<T>#2 | |
| 26 | java.util.Map<K,V>#2 | |
| 27 | Any array in 1 through 26#2,#3 | |
Points to note when setting elements:
| Element | Meaning | Example |
|---|---|---|
| yyyy | Represents years with a four-digit number. | 2013 |
| MM | Represents months with a two-digit number. | 04 |
| MMM | Represents months with a string of three characters. | Apr |
| dd | Represents dates of month with a two-digit number. | 30 |
| EEE | Represents days of a week with a string of three characters. | Sun |
| 'T' | Is a fixed character. | -- |
| HH | Represents hours of a day with a two-digit number. | 23 |
| mm | Represents minutes with a two-digit number. | 30 |
| ss | Represents seconds with a two-digit number. | 10 |
| SSS | Represents milliseconds with a three-digit number. | 978 |
| 'Z' | Is a fixed character. | -- |
| Z | Represents a time zone defined in RFC 822. | -0530 |
| zzz | Represents standard time. | IST |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.