@Test public void testSelectedChannelTypeDuplication() throws Exception { final String b1 = "b1"; SelectedChannelType sct = sf.createSelectedChannelType( ff.function("env", ff.literal(b1), ff.literal("1")), sf.createContrastEnhancement()); sct.accept(visitor); SelectedChannelType clone = (SelectedChannelType) visitor.getCopy(); assertEquals(sct, clone); }
public Object getCopy() { return pages.peek(); }
DuplicatingStyleVisitor implements StyleVisitor { public Object getCopy() { return pages.peek(); } }
DuplicatingStyleVisitor implements StyleVisitor { public Object getCopy() { return pages.peek(); } DuplicatingStyleVisitor();  DuplicatingStyleVisitor(StyleFactory styleFactory);  DuplicatingStyleVisitor(StyleFactory styleFactory, FilterFactory2 filterFactory);  DuplicatingStyleVisitor(
            StyleFactory styleFactory,
            FilterFactory2 filterFactory,
            DuplicatingFilterVisitor filterCloner); }
DuplicatingStyleVisitor implements StyleVisitor { public Object getCopy() { return pages.peek(); } DuplicatingStyleVisitor();  DuplicatingStyleVisitor(StyleFactory styleFactory);  DuplicatingStyleVisitor(StyleFactory styleFactory, FilterFactory2 filterFactory);  DuplicatingStyleVisitor(
            StyleFactory styleFactory,
            FilterFactory2 filterFactory,
            DuplicatingFilterVisitor filterCloner); void setStrict(boolean strict); Object getCopy(); void visit(StyledLayerDescriptor sld); void visit(NamedLayer layer); void visit(UserLayer layer); void visit(Style style); void visit(Rule rule); void visit(FeatureTypeStyle fts); void visit(Fill fill); void visit(Stroke stroke); void visit(Symbolizer sym); void visit(PointSymbolizer ps); void visit(LineSymbolizer line); void visit(PolygonSymbolizer poly); void visit(TextSymbolizer text); void visit(RasterSymbolizer raster); void visit(Graphic gr); void visit(Mark mark); void visit(ExternalGraphic exgr); void visit(PointPlacement pp); void visit(AnchorPoint ap); void visit(Displacement dis); void visit(LinePlacement lp); void visit(Halo halo); void visit(FeatureTypeConstraint ftc); void visit(ColorMap colorMap); void visit(ColorMapEntry colorMapEntry); void visit(ContrastEnhancement contrastEnhancement); void visit(ImageOutline outline); void visit(ChannelSelection cs); void visit(OverlapBehavior ob); void visit(SelectedChannelType sct); void visit(ShadedRelief sr); }
DuplicatingStyleVisitor implements StyleVisitor { public Object getCopy() { return pages.peek(); } DuplicatingStyleVisitor();  DuplicatingStyleVisitor(StyleFactory styleFactory);  DuplicatingStyleVisitor(StyleFactory styleFactory, FilterFactory2 filterFactory);  DuplicatingStyleVisitor(
            StyleFactory styleFactory,
            FilterFactory2 filterFactory,
            DuplicatingFilterVisitor filterCloner); void setStrict(boolean strict); Object getCopy(); void visit(StyledLayerDescriptor sld); void visit(NamedLayer layer); void visit(UserLayer layer); void visit(Style style); void visit(Rule rule); void visit(FeatureTypeStyle fts); void visit(Fill fill); void visit(Stroke stroke); void visit(Symbolizer sym); void visit(PointSymbolizer ps); void visit(LineSymbolizer line); void visit(PolygonSymbolizer poly); void visit(TextSymbolizer text); void visit(RasterSymbolizer raster); void visit(Graphic gr); void visit(Mark mark); void visit(ExternalGraphic exgr); void visit(PointPlacement pp); void visit(AnchorPoint ap); void visit(Displacement dis); void visit(LinePlacement lp); void visit(Halo halo); void visit(FeatureTypeConstraint ftc); void visit(ColorMap colorMap); void visit(ColorMapEntry colorMapEntry); void visit(ContrastEnhancement contrastEnhancement); void visit(ImageOutline outline); void visit(ChannelSelection cs); void visit(OverlapBehavior ob); void visit(SelectedChannelType sct); void visit(ShadedRelief sr);  }