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

Boolean getters plugin #65

Closed
highsource opened this issue Dec 29, 2015 · 8 comments · Fixed by highsource/jaxb-tools#461
Closed

Boolean getters plugin #65

highsource opened this issue Dec 29, 2015 · 8 comments · Fixed by highsource/jaxb-tools#461

Comments

@highsource
Copy link
Owner

http://jira.highsource.org/browse/JIIB-21

@AndreasIgelCC
Copy link

Is that plugin meant for fixing the common problem of public Boolean is Getters in JAXB-Gneration?

@AndreasIgelCC
Copy link

AndreasIgelCC commented Apr 11, 2024

Is that plugin meant for fixing the common problem of public Boolean is Getters in JAXB-Gneration?

Hi @mattrpav and @highsource,
you may have access to that jira-description. Does that close the failure of generated Getters of Booleans starting with "is"?

@laurentschoelens
Copy link
Collaborator

Hi @AndreasIgelCC
The jira is sadly offline so we lose all data in it.
My guess was this issue was related to taking the XJC plugins in org.andromda.thirdparty.jaxb2_commons inside jaxb2-basics.

One of the plugin was BooleanGetter plugin : which generate getXXX instead of isXXX method for boolean

Wiki documentation of that plugin is here

This plugin is available in v4.x of jaxb-tools, starting with 4.0.2

Do you need them in jaxb2-basics for jaxb2 ?

@AndreasIgelCC
Copy link

AndreasIgelCC commented Apr 11, 2024

Currently we fix that with a search/replace script after generation of Java-Files. The generation of "public Boolean isField()" is an error, because default XML-Parsers get problems afterwards with that. So if you are able to fix that in jaxb2-basics too, that would be great!
Or do I understand you correctly, when using jaxb-tools instead of jaxb2-basics we would be fine?

@laurentschoelens
Copy link
Collaborator

For jaxb 2.x, you could use the following :

<dependency>
    <groupId>org.andromda.thirdparty.jaxb2_commons</groupId>
    <artifactId>booleangetter</artifactId>
    <version>1.0</version>
</dependency>

For jaxb 4, you can use the org.jvnet.jaxb:jaxb-plugins from jaxb-tools.
Tell me if you need more info about it

@AndreasIgelCC
Copy link

Thank you for the response and the hints. I will take that into project team and having a check on it.

@laurentschoelens
Copy link
Collaborator

Feel free to comment again when your investigations are done 😄

@laurentschoelens
Copy link
Collaborator

highsource/jaxb-tools#460 will be backported in jaxb-tools v2 so will be available too with up-to-date versions when v2.x will be released

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 a pull request may close this issue.

3 participants