Interface ArtifactAstValidatorBuilder


@NoImplement public interface ArtifactAstValidatorBuilder
Provides a way to create ArtifactAstValidator instances.
Since:
1.1
  • Method Details

    • withValidationEnricher

      ArtifactAstValidatorBuilder withValidationEnricher(Consumer<ValidationsProvider> validationEnricher)
      Parameters:
      validationEnricher - a postprocessor to apply on every discovered ValidationsProvider.
      Returns:
      this builder
    • withValidationsFilter

      ArtifactAstValidatorBuilder withValidationsFilter(Predicate<Validation> validationsFilter)
      Parameters:
      validationsFilter - additional filter to apply on the discovered validations before evaluating them.
      Returns:
      this builder
    • withArtifactRegionClassLoader

      ArtifactAstValidatorBuilder withArtifactRegionClassLoader(ClassLoader artifactRegionClassLoader)
      Parameters:
      artifactRegionClassLoader - the classLoader to use to load any resources referenced by the artifact
      Returns:
      this builder
    • ignoreParamsWithProperties

      ArtifactAstValidatorBuilder ignoreParamsWithProperties(boolean ignoreParamsWithProperties)
      Determines whether a validation on a parameter value that has depends on a property is ignored or not.

      The default behavior is to execute all validations.

      Parameters:
      ignoreParamsWithProperties - true to ignore validations on parameters that have a property dependant value.
      Since:
      1.1
    • build

      Returns:
      a newly created ArtifactAstValidator.