Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow an attribute property to be specified readonly #111

Merged
merged 1 commit into from
May 18, 2012

Conversation

crispinb
Copy link
Contributor

I've had several cases where I don't properties to be changed after their initial values are set. It's handy to document (if not enforce) that via a readonly property.

rentzsch added a commit that referenced this pull request May 18, 2012
[NEW] Generated attribute @Property declarations can include the readonly modifier. Invoke by adding an entry with the key `mogenerator.readonly` to the attribute's user info (leave the value empty -- the presence of the key is enough). (crispinb)
@rentzsch rentzsch merged commit e834411 into rentzsch:master May 18, 2012
@rentzsch
Copy link
Owner

Thanks, pulled.

ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
[NEW] Generated attribute @Property declarations can include the readonly modifier. Invoke by adding an entry with the key `mogenerator.readonly` to the attribute's user info (leave the value empty -- the presence of the key is enough). (crispinb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants