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

Support read-only generation and freeze operation #6

Open
andylowry opened this issue Mar 22, 2018 · 0 comments
Open

Support read-only generation and freeze operation #6

andylowry opened this issue Mar 22, 2018 · 0 comments

Comments

@andylowry
Copy link
Contributor

Read-only generation would allow creation of a parser in which all write methods are omitted entirely, which is probably suitable for many use-cases, and results in a significantly simpler API.

Freezing would be made available via the overlay adapter class. It would result lock the targeted overlay object in its current state; all mutation operations would throw illegal state exception. Freezing could be recursive, so that all descendant overlay objects would also be frozen. This could optionally include overlays reachable via reference.

A parser option would recursively freeze the entire model after parsing.

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

No branches or pull requests

1 participant