public final class ConfigurationValidator extends Object
validate(org.jboss.dmr.ModelNode, Configurable)
Constructor and Description |
---|
ConfigurationValidator() |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validate(org.jboss.dmr.ModelNode fullConfiguration,
Configurable configurable)
Validates that the full configuration contains valid configuration for given configurable.
|
ValidationResult |
validate(org.jboss.dmr.ModelNode extensionConfiguration,
org.jboss.dmr.ModelNode configurationSchema)
Validates the provided configuration against the provided schema.
|
public ValidationResult validate(@Nonnull org.jboss.dmr.ModelNode fullConfiguration, @Nonnull Configurable configurable) throws ConfigurationException
fullConfiguration
- the full configuration containing properties for all configurablesconfigurable
- the configurable to validate the configuration forConfigurationException
- if reading the JSON schemas of the configurable failedpublic ValidationResult validate(@Nonnull org.jboss.dmr.ModelNode extensionConfiguration, @Nonnull org.jboss.dmr.ModelNode configurationSchema) throws ConfigurationException
extensionConfiguration
- the actual configuration of some extension (not wrapped in the identifying object
as is the case with the full configuration provided to
validate(ModelNode, Configurable)
.configurationSchema
- the schema to validate the configuration againstConfigurationException
- if an error occurs during the processing of the data or schema as opposed to
a simple validation failure which would be captured in the returned objectCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.