Hi Rini, Patch reviewed, looks good. Commit as you please.
-Justin rini.angre...@csiro.au wrote: > Hi Justin, > > I raised a JIRA issue and attached my patch for this > (http://jira.codehaus.org/browse/GEOT-2494.). > I just added an encode method for the client properties, and changed the type > from Association to Property. > Please let me know if it's OK. > > Cheers > > Rini > > -----Original Message----- > From: Justin Deoliveira [mailto:jdeol...@opengeo.org] > Sent: Friday, 15 May 2009 8:09 PM > To: Angreani, Rini (E&M, Kensington) > Cc: geotools-devel@lists.sourceforge.net > Subject: Re: [Geotools-devel] ReferenceTypeBinding > > Hi Rini, > > This behavior is used by jdbc-ng, in order to support a very lame > implementation of xlink. If you look at JDBCFetureReader in that module > you will, although I warn you, the method is nasty :). > > That said, what you see there is pretty much a hack. One I would be ok > with letting die. > > -Justin > > rini.angre...@csiro.au wrote: >> Hi list, >> >> I guess this question goes to Justin, since he's the author of the >> class. I have a problem with gml:ReferenceType, with a >> ClassCastException in ReferenceTypeBinding: >> >> * * >> >> *public* Object getProperty(Object object, QName name) >> >> *throws* Exception { >> >> Association association = (Association) object; >> >> //non resolveed, return the xlink:href >> >> *if* (XLINK./HREF/.equals(name)) { >> >> String id = (String) association.getUserData().get("gml:id"); >> >> *return* "#" + id; >> >> } >> >> *return* *null*; >> >> } >> >> The object I have is a ComplexAttribute, and the expected object is an >> Association. I can't find any examples of this being used anywhere? Why >> does it have to be an Association object, and I can't find any converter >> for it. Maybe I didn't search hard enough.. and I've never dealt with >> this type before. If anyone can shed a light on how to use this, it'd be >> much appreciated. >> >> >> >> Cheers >> >> Rini >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited royalty-free distribution of the report engine >> for externally facing server and web deployment. >> http://p.sf.net/sfu/businessobjects >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Geotools-devel mailing list >> Geotools-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-devel > > -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel