Class ConfigurationError.Builder

java.lang.Object
io.micronaut.jsonschema.configuration.validator.ConfigurationError.Builder
Enclosing class:
ConfigurationError

public static final class ConfigurationError.Builder extends Object
Builder for ConfigurationError.
  • Method Details

    • type

      Parameters:
      type - The type
      Returns:
      This builder
    • originLocation

      public ConfigurationError.Builder originLocation(@Nullable String originLocation)
      Set the origin location for this error.
      Parameters:
      originLocation - The origin location (for example a file path or classpath resource)
      Returns:
      This builder
    • rawPropertyName

      public ConfigurationError.Builder rawPropertyName(@Nullable String rawPropertyName)
      Set the raw (non-normalized) property name.
      Parameters:
      rawPropertyName - The raw property name
      Returns:
      This builder
    • rawValue

      public ConfigurationError.Builder rawValue(@Nullable Object rawValue)
      Set the raw value.
      Parameters:
      rawValue - The raw value
      Returns:
      This builder
    • lineNumber

      public ConfigurationError.Builder lineNumber(int lineNumber)
      Set the 1-based line number in the origin file.
      Parameters:
      lineNumber - The line number, or -1 if unknown
      Returns:
      This builder
    • snippet

      public ConfigurationError.Builder snippet(@Nullable String snippet)
      Set a best-effort snippet showing the invalid definition.
      Parameters:
      snippet - The snippet
      Returns:
      This builder
    • snippetLanguage

      public ConfigurationError.Builder snippetLanguage(@Nullable String snippetLanguage)
      Set the snippet language.
      Parameters:
      snippetLanguage - The snippet language (for example properties, yaml, toml)
      Returns:
      This builder
    • build

      public ConfigurationError build()
      Returns:
      A new ConfigurationError instance.