| java.lang.Object org.vfny.geoserver.util.SLDValidator
SLDValidator | public class SLDValidator (Code) | | |
SLDValidator | public SLDValidator()(Code) | | |
getErrorMessage | public static String getErrorMessage(Reader xml, List errors)(Code) | | returns a better formated error message - suitable for framing. There's
a more complex version in StylesEditorAction. This will kick out a VERY
LARGE errorMessage.
Parameters: xml - Parameters: errors - DOCUMENT ME! |
validateSLD | public List validateSLD(InputStream xml, ServletContext servContext)(Code) | | validates against the "normal" location of the schema (ie.
".../schemas/sld/StyleLayerDescriptor.xsd" uses the geoserver_home
patch
Parameters: xml - Parameters: servContext - servlet context |
validateSLD | public List validateSLD(InputSource xml, ServletContext servContext)(Code) | | validate a .sld against the schema
Parameters: xml - input stream representing the .sld file Parameters: SchemaUrl - location of the schemas. Normally use".../schemas/sld/StyleLayerDescriptor.xsd" list of SAXExceptions (0 if the file's okay) |
|
|