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

Improve usability #2

Closed
io7m opened this issue Oct 12, 2020 · 2 comments
Closed

Improve usability #2

io7m opened this issue Oct 12, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@io7m
Copy link
Owner

io7m commented Oct 12, 2020

It's quite a lot of work to set up all of the necessary parser boilerplate such as schemas, creating XML readers via JXE, etc.

Provide more convenient APIs!

@io7m io7m added the enhancement New feature or request label Oct 12, 2020
@io7m io7m self-assigned this Oct 12, 2020
@io7m
Copy link
Owner Author

io7m commented Oct 13, 2020

Take a look at https://www.github.com/io7m/waxmill for an example of the boilerplate.

io7m added a commit to io7m/jxe that referenced this issue Oct 15, 2020
This adds more convenience methods to reduce boilerplate.

See: io7m/blackthorne#2
io7m added a commit that referenced this issue Oct 15, 2020
io7m added a commit that referenced this issue Oct 24, 2020
This adds a convenient handler class for elements that consist only
of attributes.

Affects: #2
io7m added a commit that referenced this issue Oct 24, 2020
This adjusts the API to allow handlers to throw raw Exception
values. The Exception values will be caught and a useful parse error
will result (with the correct line/column numbers).

This also removes the recent leaf element handler as similar
functionality already existed.

Affects: #2
io7m added a commit that referenced this issue Oct 24, 2020
Release: com.io7m.blackthorne 1.1.0
Change: Allow content handlers to throw raw exceptions (Ticket: #2)
io7m added a commit that referenced this issue Oct 24, 2020
Release: com.io7m.blackthorne 1.1.0

Change: Allow content handlers to throw raw exceptions (Ticket: #2)
io7m added a commit that referenced this issue Jan 24, 2021
This adds more scalar element handlers to the Blackthorne API to make
it more convenient to parse text values from elements.

Affects: #2
io7m added a commit that referenced this issue Jan 24, 2021
Release: com.io7m.blackthorne 1.2.0
Change: Add logging for content handlers (Ticket: #3)
Change: Add more convenience methods for scalar elements (Ticket: #2)
io7m added a commit that referenced this issue Jan 24, 2021
Release: com.io7m.blackthorne 1.2.0

Change: Add logging for content handlers (Ticket: #3)
Change: Add more convenience methods for scalar elements (Ticket: #2)
@io7m
Copy link
Owner Author

io7m commented Aug 8, 2023

This is done, for now. New issues in new tickets.

@io7m io7m closed this as completed Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant