public final class ConfigurationValidator extends Object
validate(JsonNode, Configurable)
Constructor and Description |
---|
ConfigurationValidator() |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validate(com.fasterxml.jackson.databind.JsonNode fullConfiguration,
Configurable configurable)
Validates that the full configuration contains valid configuration for given configurable.
|
ValidationResult |
validate(com.fasterxml.jackson.databind.JsonNode extensionConfiguration,
com.fasterxml.jackson.databind.JsonNode configurationSchema)
Validates the provided configuration against the provided schema.
|
ValidationResult |
validate(org.jboss.dmr.ModelNode fullConfiguration,
Configurable configurable)
Deprecated.
use the Jackson-based variant
|
ValidationResult |
validate(org.jboss.dmr.ModelNode extensionConfiguration,
org.jboss.dmr.ModelNode configurationSchema)
Deprecated.
use the Jackson-based variant
|
@Deprecated 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(@Nullable com.fasterxml.jackson.databind.JsonNode fullConfiguration, 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 failed@Deprecated public 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 objectpublic ValidationResult validate(com.fasterxml.jackson.databind.JsonNode extensionConfiguration, com.fasterxml.jackson.databind.JsonNode 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(JsonNode, 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-2021 Lukas Krejci. All Rights Reserved.