I've got to the situation where I need to model what in xml schema is a list 
of simple types, like in:

public interface List<B, AttributeType<B>> extends AttributeType<List>{
        
        public AttributeType<B> getMembersType();

}

my Java5 skills aren't so good, but hopefully you already seen what I want to 
mean. 
Often (very) in a gml schema we have:

<simpleType name='listOfString'>
  <list itemType='string'/>
</simpleType>

a sample instance:
<someElement xsi:type='listOfString'>string1 string2 string3</someElement>

the same goes for union (of simple types), but in this case I think we should 
have something like:

public interface Union extends AttributeType{ //making it java5 seems too much 
for me
        
        public Set<AttributeType> getMemberTypes();

}


I was trying to figure out if we could avoid creating this two new interfaces 
with the current GeoAPI modeling power, but failed, so this message.
Hopefully you'll bring some light into this..

-- 
Gabriel Roldán ([EMAIL PROTECTED])
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
Fax. +34 944 41 64 90


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to