Class SchemaConfigValidator

    • Constructor Detail

      • SchemaConfigValidator

        public SchemaConfigValidator()
    • Method Detail

      • validate

        public SchemaValidationStatus validate​(java.io.InputStream content,
                                               javax.xml.bind.JAXBContext context)
        Checks whether given xml content is valid against all schemas available from schemaLocationRegistry
        Parameters:
        content - xml config that is being validated
        context - context that is being used
        Returns:
        true if the given content is valid otherwise false
      • processParseException

        protected SchemaValidationStatus processParseException​(org.xml.sax.SAXParseException e,
                                                               java.lang.String fileType)
      • setSchemaLocationRegistry

        public void setSchemaLocationRegistry​(SchemaLocationRegistry schemaLocationRegistry)
      • setWidgetResourceReader

        public void setWidgetResourceReader​(CockpitResourceLoader widgetResourceReader)