If at all possible, since neither OGC nor ISO includes this, I would strive
to avoid modifying the Feature interface itself.  I see two alternatives
which may provide you the required functionality:

1] Make a wrapper which decorates any Feature with an additional
getVersion():String method; or
2] Extend Feature with VersionedFeature in GeoAPI, making the distinction
between "neat stuff" and "standards-derived" clear.

I am particularly fond of #1, as we can write it once and use it even on
non-GeoTools feature implementations.

Bryce

[EMAIL PROTECTED] wrote on 11/30/2006 09:12:24
AM:

> Thanks for sneaking this in before the deadline - we used to have a
> getVersion(): String method
> would restoring that be sufficient?
>
> +1 (it is needed by you and it brings us closer to the general feature
> model)
>
> Point is also noted that Justin is suffering against our current feature
> model, and while not stuck
> he may need everyone's assistance from time to time.
>
> Jody
> Andrea Aime wrote:
> > Hi,
> > those that have followed the versioned WFS-T discussion
> > may have noticed that in order to support versioning
> > I need a "String getVersion()" method in the Feature
> > interface, which is usually null, meaning that no
> > version information is around, or that may be non null,
> > representing a version id (usually a number).
> >
> > And I need it in geotools 2.3, along with changes
> > in GML generators/parser that allow us to handle it.
> >
> > Now, given that gt2 2.3.0 will be released tomorrow,
> > I guess this is something for 2.3.1... in the meantime
> > I can start working anyways on the versioned
> > datastore by using a DefaultFeature subclass that
> > does support versioning, and have the prototype version
> > of it handle the casts as necessary.
> >
> > What do you think?
> > I guess this requires a PMC vote. Here is my +1 :-p
> > Cheers
> > Andrea
> >
> >
-------------------------------------------------------------------------
> > 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
> >
>
>
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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

Reply via email to