Hi Justin, I think that the lack of boolean is a problem that almost we all thought about more than one, so it would be great to finally have a solution, mostly when it is so simple.
I could be just ranting, but had the following idea: AttributeType already has a class binding, so why don't we just get rid of specific realizations (temporal, numeric, boolean, etc) and use the same approach as described in http://jira.codehaus.org/browse/GEOT-602 for the treatment of literals in order to make the typing system extensible? say I need a URLAttributeType, LocaleAttributeType, BlobAttributeType, whatever. May be the most common use case is to be able to parse it from string and to encode it to xml string. A point in favor of this approach could be that I wouldn't need to tweak the attributetype factory when I need a new kind of, but inject a new "Converter" and I'm done. Does it makes sense at all? regards, Gabriel On Monday 25 September 2006 18:38, Andrea Aime wrote: > Justin Deoliveira ha scritto: > > I would like to create an attribute type for booleans, similar to the > > attribute types for the other primitives. textual, temporal, numeric, > > etc... > > > > Then add some logic in DefaultAttributeTypeFactory to create intsances > > of these when a boolean value is encountered. > > > > Any objections? > > None from me :-) > Cheers > Andrea > > PS: I have a big rant about how difficult is to use Features containting > types other than the basic ones, but I'll save it for another time, when > my familiarity with current gt2 code will be enough... :-p > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel -- Gabriel Roldán ([EMAIL PROTECTED]) Axios Engineering (http://www.axios.es) Tel. +34 944 41 63 84 Fax. +34 944 41 64 90 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
