Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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