@Test public void testEncodeBackgroundSolid() throws IOException, SAXException, TransformerException, XpathException { StyleBuilder sb = new StyleBuilder(); Style style = sb.createStyle(sb.createLineSymbolizer()); style.setBackground(sb.createFill(Color.RED)); SLDTransformer st = new SLDTransformer(); st.setExportDefaultValues(true); st.setIndentation(2); String styleXML = st.transform(style); Document doc = buildTestDocument(styleXML); assertXpathEvaluatesTo( "#FF0000", " assertXpathEvaluatesTo( "1.0", " doc); }
public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); boolean isExportDefaultValues(); void setExportDefaultValues(boolean exportDefaultValues); Translator createTranslator(ContentHandler handler); static final void main(String[] args); }
SLDTransformer extends TransformerBase { public void setExportDefaultValues(boolean exportDefaultValues) { this.exportDefaultValues = exportDefaultValues; } SLDTransformer();  SLDTransformer(Map nsBindings); boolean isExportDefaultValues(); void setExportDefaultValues(boolean exportDefaultValues); Translator createTranslator(ContentHandler handler); static final void main(String[] args);  }