Interface ArtifactAstValidatorBuilder
@NoImplement
public interface ArtifactAstValidatorBuilder
Provides a way to create
ArtifactAstValidator instances.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()ignoreParamsWithProperties(boolean ignoreParamsWithProperties) Determines whether a validation on a parameter value that has depends on a property is ignored or not.withArtifactRegionClassLoader(ClassLoader artifactRegionClassLoader) withValidationEnricher(Consumer<ValidationsProvider> validationEnricher) withValidationsFilter(Predicate<Validation> validationsFilter)
-
Method Details
-
withValidationEnricher
ArtifactAstValidatorBuilder withValidationEnricher(Consumer<ValidationsProvider> validationEnricher) - Parameters:
validationEnricher- a postprocessor to apply on every discoveredValidationsProvider.- Returns:
- this builder
-
withValidationsFilter
- Parameters:
validationsFilter- additional filter to apply on the discovered validations before evaluating them.- Returns:
- this builder
-
withArtifactRegionClassLoader
- Parameters:
artifactRegionClassLoader- the classLoader to use to load any resources referenced by the artifact- Returns:
- this builder
-
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-trueto ignore validations on parameters that have a property dependant value.- Since:
- 1.1
-
build
ArtifactAstValidator build()- Returns:
- a newly created
ArtifactAstValidator.
-