@Test public void testDefaults() throws Exception { StyleBuilder sb = new StyleBuilder(); LineSymbolizer ls = sb.createLineSymbolizer(Color.BLACK); SLDTransformer st = new SLDTransformer(); st.setExportDefaultValues(true); st.setIndentation(2); String xml = st.transform(ls); Document doc = buildTestDocument(xml); assertXpathExists(" assertXpathEvaluatesTo( "#000000", " st.setExportDefaultValues(false); xml = st.transform(ls); doc = buildTestDocument(xml); assertXpathNotExists( " st.setExportDefaultValues(true); PolygonSymbolizer ps = sb.createPolygonSymbolizer(Color.GRAY, Color.black, 1.0); xml = st.transform(ps); doc = buildTestDocument(xml); assertXpathExists(" assertXpathEvaluatesTo( "#000000", " doc); assertXpathExists(" assertXpathEvaluatesTo( "#808080", " st.setExportDefaultValues(false); xml = st.transform(ps); doc = buildTestDocument(xml); assertXpathExists(" assertXpathNotExists( " assertXpathExists(" assertXpathNotExists( " st.setExportDefaultValues(true); PointSymbolizer pos = sb.createPointSymbolizer(sb.createGraphic(null, sb.createMark("square"), null)); xml = st.transform(pos); doc = buildTestDocument(xml); assertXpathExists(" assertXpathEvaluatesTo( "#000000", " doc); assertXpathExists(" assertXpathEvaluatesTo( "#808080", " doc); assertXpathExists(" st.setExportDefaultValues(false); xml = st.transform(pos); doc = buildTestDocument(xml); assertXpathExists(" assertXpathNotExists( " doc); assertXpathExists(" assertXpathNotExists( " doc); assertXpathNotExists(" }
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);  }