Generate additional custom method with jaxb-xjc?

You can write an XJC plugin: weblogs.java.net/blog/kohsuke/archive/20....

Excellent! I think that it's exactly what I am looking for ... I'll try it and comment here about results! Thanks!

– apast Feb 2 at 14:42 I used an existent implementation of Code Injection, exactly the same described on article. It worked as I expected. Thanks!

– apast Feb 3 at 1:33.

I have found the following to be the best way to add custom behavior: jaxb.java.net/guide/Adding_behaviors.html You can implement the custom behavior for a JAXB generated class BaseType in a custom class BaseTypeExt that extends the JAXB generated class BaseType. You also tell JAXB to use your extended class BaseTypeExt (instead of the BaseType class it extends) as the base class for all classes that normally would have extended the BaseType class. I used this successfully to override the toString() method in my generated class BaseType.

This seems simpler than writing an XJC plugin.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions