public class PluginValidator extends Object
| Constructor and Description |
|---|
PluginValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(File pluginXml)
The method validates a thermostat-plugin.xml file against the thermostat
plug-in schema
|
public void validate(File pluginXml) throws PluginConfigurationValidatorException, FileNotFoundException
pluginXml - The file to be validatedPluginConfigurationValidatorException - If any kind of schema validation error occurs. This exception
contains details about the issues which occurred.FileNotFoundException - if the file does not exist, is a directory rather than a
regular file, or for some other reason cannot be opened for
reading.PluginConfigurationValidatorException,
ValidationErrorsFormatterCopyright © 2015. All rights reserved.