You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Companion Ticket for SLING-6420

Planned rules for Object Conversion in Value Maps that should be applied to both API ValueMapDecorator and to JCR ValueMap implementation.

 

Rules for single values

Rule / Already supported by:API ValueMapDecoratorjcr.resource ValueMap
Any Object -> String (via toString)XX
String or any Number type -> IntegerXX
String or any Number type -> LongXX
String or any Number type -> DoubleXX
String -> BooleanXX
Convert any type of (Long, Byte, Short, Integer Double, Float, Calendar, Date, Boolean, BigDecimal) -> to each of them X

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

 

  • No labels