Class ConfigurationValidationResult

java.lang.Object
org.apache.sling.feature.extension.apiregions.api.config.validation.ConfigurationValidationResult

public class ConfigurationValidationResult extends Object
A configuration validation result is returned by the ConfigurationValidator. This class is not thread safe.
  • Constructor Details

    • ConfigurationValidationResult

      public ConfigurationValidationResult()
  • Method Details

    • isValid

      public boolean isValid()
      Is the configuration valid?
      Returns:
      true if it is valid
    • getErrors

      public List<String> getErrors()
      Return the list of errors
      Returns:
      A list of errors. Might be empty.
    • getPropertyResults

      public Map<String,PropertyValidationResult> getPropertyResults()
      Get a property validation result for each property of the configuration
      Returns:
      A map of property results keyed by property name
    • getWarnings

      public List<String> 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:
      true if 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