May I ask why you don't use a boolean in this case? 
Something like: **isReadonly**