There are several copy visitors that ... - use the visitor patter to navigate over the data structure - use a style factory / filter factory etc ... to duplicate each element
This is something we try to do whenever we have a deep data structure; often preferring to leave it immutable rather than take on the kind of horrible even notification you see in the Style objects. Here is an example from the following page: - http://docs.codehaus.org/display/GEOTDOC/FilterVisitor+Examples Filter newFilter = (Filter) filter.accept( new DuplicatingFilterVisitor(), filterFactory ); This example is for filter; but there is some kind of style visitor that does the same thing for style objects. Jody > Hello people, > I wonder if there was any method in the APIs to facilitate the cloning > of objects such as FeatureTypeStyle and Rule. > Thanks > > > -- > www.juglar.org <http://www.juglar.org> > "El Java User Group del Litoral Argentino" > > @Saludos( mappedBy="GNR" ) > public String saludo(){ > return new String( "12 de Febrero - Chinese Democracy" ); > } > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
