[F] isReadonlyProperty
function isReadonlyProperty(program, property): boolean;Determines if a property is read-only, which is defined as having the
only the Lifecycle.Read modifier.
If there is more than one Lifecycle visibility modifier active on the property,
then the property is not read-only. For example, @visibility(Lifecycle.Read, Lifecycle.Update)
does not designate a read-only property.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
program | Program |
property | ModelProperty |
Returns
Section titled “Returns”boolean