[EMAIL PROTECTED] wrote on 02/16/2006 11:03:43 AM:

> Jody Garnett wrote:
> > Justin Deoliveira wrote:
> >
> >> Whoopsy, I think this is something that got slipped in accidently, I
> >> will build a new jar and update the geoapi timestamp.
> >
> > I have replaced all QName I could find with GenericName (but I am still

> > very unhappy with GenericName - can we do anything to make this class
> > easier to use?).
> I have to agree here, while very complete and flexible, GenericName is
> pretty hard to use. I would rather just see the dependency on jaxp which
> doensn't necessarily mean java 5.
> >
> > Also QName is available as a separate dependency for Java 1.4 as I
> > understand it.
> >
> Yup, its part of the jaxp api, which was made part of java 1.5 by
> default if I understand correctly.


GenericName: primary function is an association between name and object.
QName: not.

QName is an interface.  GenericName could be made to implement QName (or
extend it, if we're talking the GeoAPI interface), given some assumptions,
which would have to be documented.  Am right now elaborating GenericName
(actually, everything in 19103) to provide a map from 19103 to Java/GeoAPI
concepts.  Will submit for review when done.

Alternatively, we could use the facade pattern to dumb down the class to
facilitate a specific common usage.  Third alternative is to use adapter
pattern to implement QName with a GenericName backing.  There are a whole
array of options.  One of 'em has to happen, 'cause I don't much like it
either.

However, loss of functionality coupled with more restrictive prerequisites
doesn't make for a convincing sell.  We have to retain the defined
functionality for when it is needed.

Bryce

PS:
Watch out for versions.  GeoAPI 2.0 is inconsistent with 19103:2005
(apparently, they clarified some things with the recent edition).  See UML
diagram on http://jira.codehaus.org/browse/GEO-71.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to