201202203204205206207208209210211
} }; } List<Exception> validateSLD() { Parser parser = new Parser(new SLDConfiguration()); try { parser.validate( new ByteArrayInputStream(editor.getInput().getBytes()) ); } catch( Exception e ) { return Arrays.asList( e ); }
30313233343536
*/ public class SLDTestSupport extends XMLTestSupport { StyleFactory styleFactory = StyleFactoryFinder.createStyleFactory(); protected Configuration createConfiguration() { return new SLDConfiguration(); }
200201202203204205206207208209210
} }; } List<Exception> validateSLD() { Parser parser = new Parser(new SLDConfiguration()); try { final String sld = editor.getInput(); parser.validate( new ByteArrayInputStream(sld.getBytes()) ); } catch( Exception e ) { return Arrays.asList( e );
29303132333435
Configuration sldConfiguration; protected SLDStylePPIO() { super(Style.class, Style.class, "text/xml; subtype=sld/1.0.0", SLD.STYLEDLAYERDESCRIPTOR); sldConfiguration = new SLDConfiguration(); }