Re: How to annotate XSD to use java.util.Set instead of list for collection?

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: How to annotate XSD to use java.util.Set instead of list for collection?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

up from the dead.

Does anyone know if this is possible?  We'd really like to use Sets on some fields since it really makes sense but I am still turning up empty with google.

largeSet.contains()
vs
largeList.contains()

help!!!
thx
[Message sent by forum member 'newmanjw' (newmanjw@...)]

http://forums.java.net/jive/thread.jspa?messageID=369643

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to annotate XSD to use java.util.Set instead of list for collection?

by Felipe Gaucho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html

On Wed, Oct 28, 2009 at 3:25 PM,  <metro@...> wrote:

> up from the dead.
>
> Does anyone know if this is possible?  We'd really like to use Sets on some fields since it really makes sense but I am still turning up empty with google.
>
> largeSet.contains()
> vs
> largeList.contains()
>
> help!!!
> thx
> [Message sent by forum member 'newmanjw' (newmanjw@...)]
>
> http://forums.java.net/jive/thread.jspa?messageID=369643
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/arena-http/wadl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to annotate XSD to use java.util.Set instead of list for collection?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Felipe & thanks for your response.  (Good to see someone is out there)

I've ran across that page before in the past.... There is the "collectionType" customization, but that only applies to implementation type and not interface.  So I can use Vector or LinkedList, but still no Set/HashSet.  So is this even possible if I wrote my own custom plugin?

collectionType defines the customization value propertyCollectionType, which is the collection type for the property. propertyCollectionType if specified, [b]can be either indexed or any fully-qualified class name that implements java.util.List.[/b]
[Message sent by forum member 'newmanjw' (newmanjw@...)]

http://forums.java.net/jive/thread.jspa?messageID=369816

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...