8

I'm trying to automatically implement an interface in one java class generated from a xsd file.

This looks as if it could do that, but it will only add implements SomeInterface to all classes, which is completly stupid. Am I missing something or can you only do this for all classes? Doesn't really make too much sence to let all generated classes implement the same interface. Can I use this feature for one class only?

Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
  • To add insult to injury, this means that with the jaxb reference implementation, you can't properly define value elements because it will complain "@XmlValue is not allowed on a class that derives another class". That's a pretty huge restriction. So yeah I agree, completely stupid. – drrob Jan 26 '17 at 17:46

0 Answers0