From: Gabriel <gr...@ax...> - 2006-04-03 16:31:26
|
I've got to the situation where I need to model what in xml schema is a lis= t=20 of simple types, like in: public interface List<B, AttributeType<B>> extends AttributeType<List>{ =09 public AttributeType<B> getMembersType(); } my Java5 skills aren't so good, but hopefully you already seen what I want = to=20 mean.=20 Often (very) in a gml schema we have: <simpleType name=3D'listOfString'> <list itemType=3D'string'/> </simpleType> a sample instance: <someElement xsi:type=3D'listOfString'>string1 string2 string3</someElement> the same goes for union (of simple types), but in this case I think we shou= ld=20 have something like: public interface Union extends AttributeType{ //making it java5 seems too m= uch=20 for me =09 public Set<AttributeType> getMemberTypes(); } I was trying to figure out if we could avoid creating this two new interfac= es=20 with the current GeoAPI modeling power, but failed, so this message. Hopefully you'll bring some light into this.. =2D-=20 Gabriel Rold=E1n (gr...@ax...) Axios Engineering (http://www.axios.es) Tel. +34 944 41 63 84 =46ax. +34 944 41 64 90 |