Class ConfigurationValidationResult
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.config.validation.ConfigurationValidationResult
A configuration validation result is returned by the
ConfigurationValidator.
This class is not thread safe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the list of errorsGet a property validation result for each property of the configurationReturn the list of warningsbooleanShould the default be used instead of the configuration values?booleanisValid()Is the configuration valid?voidsetUseDefaultValue(boolean useDefault) Set whether the default values should be used
-
Constructor Details
-
ConfigurationValidationResult
public ConfigurationValidationResult()
-
-
Method Details
-
isValid
public boolean isValid()Is the configuration valid?- Returns:
trueif it is valid
-
getErrors
Return the list of errors- Returns:
- A list of errors. Might be empty.
-
getPropertyResults
Get a property validation result for each property of the configuration- Returns:
- A map of property results keyed by property name
-
getWarnings
Return the list of warnings- Returns:
- The list of warnings - might be empty
-
isUseDefaultValue
public boolean isUseDefaultValue()Should the default be used instead of the configuration values?- Returns:
trueif the default should be used.- Since:
- 1.3
-
setUseDefaultValue
public void setUseDefaultValue(boolean useDefault) Set whether the default values should be used- Parameters:
useDefault- boolean flag- Since:
- 1.3
-