Why are generics the answer to this? Could you post some sample code
that you'd like to see generated?
It sounds to me that you just need some good polymorphic OO modelling
here, or at least as much as XSD will allow. Generic type parameters
are nothing more than syntactic sugar.
Felipe Gaúcho wrote:
> rephrasing the question:
>
> I am representing several attachment types in my schema.. PDF, Flash,
> etc.. I am using mime types.... it works fine, despite I need to
> create 1 type for each mime type... quite normal...
>
> Now the problem: I am using these types in a WSDL, where I want to
> declare some operation over these types.. and I am dreaming to avoid
> to create a different operation just because the message contents has
> a different mime type.. :( and I want to kep object oriented instead
> of the classical cheat of using binary strings and a second parameter
> with ethe mime type name.. etc...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>