Make GeoTools Style interfaces mutable
--------------------------------------
Key: GEOT-2684
URL: http://jira.codehaus.org/browse/GEOT-2684
Project: GeoTools
Issue Type: Bug
Components: core styling
Affects Versions: 2.6-RC1
Reporter: Jody Garnett
Attachments: style_update.patch
We have introduced many new methods on the journey to symbology encoding 1.1
support:
- getName
- getDescrption
We need to ensure that each one of these is mutable:
- setName( String )
- setDescription( Description )
One implementation detail encountered while fixing this bug is how to "cast"
from an org.opengis.style.Description to a org.geotools.styling.Description
that has set methods.
It was a choice between:
- DescriptionImpl.cast( org.opengis.style.Description ); or
- new DescriptionImpl( org.opengis.style.Description )
I have gone with the initial approach of a cast method - so that I can perform
an instanceof check and avoid doing any extra creation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel