DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Companion Page for SLING-6420
Current rules for Object Conversion in Value Maps implemented in API ValueMapDecorator and JCR ValueMap.
Rules for single values
| Rule / Already supported by: | API 2.16.2 ValueMapDecorator | jcr.resource 2.9.2 ValueMap |
|---|---|---|
| Any Object -> String (via toString) | ||
| String or any Number type -> Integer and vice versa | ||
| String or any Number type -> Long and vice versa | ||
| String or any Number type -> Double and vice versa | ||
| String -> Boolean and vice versa | ||
| Convert any number type of (Long, Byte, Short, Integer, Double, Float, BigDecimal) -> to each of them or String and vice versa | ||
| Convert any date type of (Calendar, Date) -> to each of them or String and vice versa | ||
Convert any type of (Long, Byte, Short, Integer, Double, Float, Calendar, Date, Boolean, BigDecimal) -> to each of them - including exotic conversion like Boolean to Date |
|
Rules for Arrays
- Convert single value to singleton array if array is requested
- Convert array types if conversion is supported for the type of the array elements