How to delete “is” from a Boolean getter generated by JAXB

JAXB is generating the following methods:

Many class methods are generated, so it is not feasible to customize the generated method name alone

Some kind of regular rule for customizing JAXB was first thought, but I couldn't find any common way to change the method name

Solution

From its sound, you only need to change the method name, not the class name You might:

>Find an xjc plug-in that allows this, or write an xjc plug-in that does this

I doubt the first option exists (although you may be lucky), but the second option looks very simple For how to write your own post, see this page

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>