added support for readonly attribute

Signed-off-by: Grégory STOOS <gstoos@gestour.com>