Hi all,
Hacking on fm and came across an issue I wanted to start some discussion
about.
In the new feature model, a *type* has the notion of a *binding*. The
binding being an associated java class. For example the simple type:
new AttributeType(
"http://www.w3.org/2001/XMLSchema","string", String, false
);
binds to to java.lang.String and originates from xml schema
land(xs:string). This is all fine and dandy for simple types.
But for complex types, the model explicitly binds to
java.util.Collection which prevents us from associating the type with
any other class. For example consider the gml schema type:
<complexType name="CoordType">
<sequence>
<element name="X" type="decimal"/>
<element minOccurs="0" name="Y" type="decimal"/>
<element minOccurs="0" name="Z" type="decimal"/>
</sequence>
</complexType>
In our model, this gets explicty bound to java.lang.List (containing up
to three decimals), but what I would really like is some way to
associate it with a class called Coordinate.
I am not saying anything is a miss here, just wanted to bring this up a
topic of discussion to hear some thoughts. If I havent explained the
problem sufficiently please let me know.
I guess my first impression would be to break the correspondance to xml
schema and make the type non-complex (in terms of the feature model).
-Justin
--
Justin Deoliveira
The Open Planning Project
[EMAIL PROTECTED]
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel