public StyleBuilder reset(Style style) { if (style == null) { return unset(); } fts.clear(); for (FeatureTypeStyle ft : style.featureTypeStyles()) { fts.add(new FeatureTypeStyleBuilder(this).reset(ft)); } name = style.getName(); styleAbstract = style.getAbstract(); title = style.getTitle(); isDefault = style.isDefault(); unset = false; return this; }
public void visit(Style style) { Style copy = null; FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); final int length = fts.length; FeatureTypeStyle[] ftsCopy = new FeatureTypeStyle[length]; for (int i = 0; i < length; i++) { if (fts[i] != null) { fts[i].accept(this); ftsCopy[i] = (FeatureTypeStyle) pages.pop(); } } copy = sf.createStyle(); copy.setAbstract(style.getAbstract()); copy.setName(style.getName()); copy.setTitle(style.getTitle()); copy.setFeatureTypeStyles(ftsCopy); if (STRICT && !copy.equals(style)) { throw new IllegalStateException("Was unable to duplicate provided Style:" + style); } pages.push(copy); }
@Override protected void encode(StyledLayerDescriptor sld) { Style style = SLD.defaultStyle(sld); if (style != null) { put("name", style.getName()); put("title", style.getTitle()); put("abstract", style.getAbstract()); put("feature-styles", new FeatureStyleEncoder(style)); } } }
public void visit(Style style) { Style copy = null; FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); final int length=fts.length; FeatureTypeStyle[] ftsCopy = new FeatureTypeStyle[length]; for (int i = 0; i < length; i++) { if (fts[i] != null) { fts[i].accept(this); ftsCopy[i] = (FeatureTypeStyle) pages.pop(); } } copy = sf.createStyle(); copy.setAbstract(style.getAbstract()); copy.setName(style.getName()); copy.setTitle(style.getTitle()); copy.setFeatureTypeStyles(ftsCopy); if( STRICT && !copy.equals( style )){ throw new IllegalStateException("Was unable to duplicate provided Style:"+style ); } pages.push(copy); }
copy.setAbstract(style.getAbstract()); copy.setName(style.getName()); copy.setTitle(style.getTitle());
public void visit(Style style) { Style copy = null; FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); final int length=fts.length; FeatureTypeStyle[] ftsCopy = new FeatureTypeStyle[length]; for (int i = 0; i < length; i++) { if (fts[i] != null) { fts[i].accept(this); ftsCopy[i] = (FeatureTypeStyle) pages.pop(); } } copy = sf.createStyle(); copy.setAbstract(style.getAbstract()); copy.setName(style.getName()); copy.setTitle(style.getTitle()); copy.setFeatureTypeStyles(ftsCopy); pages.push(copy); }
public void visit(Style style) { Style copy = null; FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); final int length=fts.length; FeatureTypeStyle[] ftsCopy = new FeatureTypeStyle[length]; for (int i = 0; i < length; i++) { if (fts[i] != null) { fts[i].accept(this); ftsCopy[i] = (FeatureTypeStyle) getPages().pop(); } } copy = sf.createStyle(); copy.setAbstract(style.getAbstract()); copy.setName(style.getName()); copy.setTitle(style.getTitle()); copy.setFeatureTypeStyles(ftsCopy); getPages().push(copy); }
@Override protected void encode(StyledLayerDescriptor sld) { Style style = SLD.defaultStyle(sld); if (style != null) { put("name", style.getName()); put("title", style.getTitle()); put("abstract", style.getAbstract()); put("feature-styles", new FeatureStyleEncoder(style)); } } }
element("Name", ftStyle.getName()); element("Title", ftStyle.getTitle()); element("Abstract", ftStyle.getAbstract()); handleLegendURL(ftype); end("Style"); element("Name", ftStyle.getName()); element("Title", ftStyle.getTitle()); element("Abstract", ftStyle.getAbstract()); handleLegendURL(ftype); end("Style");
public void visit(Style style) { if (style instanceof NamedStyle) { start("NamedStyle"); element("Name", style.getName()); end("NamedStyle"); } else { start("UserStyle"); element("Name", style.getName()); element("Title", style.getTitle()); element("Abstract", style.getAbstract()); FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); for (int i = 0; i < fts.length; i++) { visit(fts[i]); } end("UserStyle"); } }
element("Name", cvStyle.getName()); element("Title", cvStyle.getTitle()); element("Abstract", cvStyle.getAbstract()); handleLegendURL(coverage); end("Style"); element("Name", cvStyle.getName()); element("Title", cvStyle.getTitle()); element("Abstract", cvStyle.getAbstract()); handleLegendURL(coverage); end("Style");