Package com.networknt.schema
Class ExecutionConfig.BuilderSupport<T>
java.lang.Object
com.networknt.schema.ExecutionConfig.BuilderSupport<T>
- Direct Known Subclasses:
ExecutionConfig.Builder
- Enclosing class:
ExecutionConfig
Builder for
ExecutionConfig.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationCollectionEnabled(boolean annotationCollectionEnabled) Sets whether the annotation collection is enabled.annotationCollectionFilter(Predicate<String> annotationCollectionFilter) Predicate to determine if annotation collection is allowed for a particular keyword.build()Builds theExecutionConfig.failFast(boolean failFast) Sets whether fast fail is enabled.formatAssertionsEnabled(Boolean formatAssertionsEnabled) Sets the format assertion enabled flag.Sets the locale to use for formatting messages.protected abstract Tself()
-
Field Details
-
locale
-
annotationCollectionEnabled
protected boolean annotationCollectionEnabled -
annotationCollectionFilter
-
formatAssertionsEnabled
-
failFast
protected boolean failFast -
readOnly
-
writeOnly
-
-
Constructor Details
-
BuilderSupport
public BuilderSupport()
-
-
Method Details
-
self
-
locale
Sets the locale to use for formatting messages.- Parameters:
locale- the locale- Returns:
- the builder
-
annotationCollectionEnabled
Sets whether the annotation collection is enabled.This does not affect annotation collection required for evaluating keywords such as unevaluatedItems or unevaluatedProperties and only affects reporting.
The annotations to collect can be customized using the annotation collection predicate.
- Parameters:
annotationCollectionEnabled- true to enable annotation collection- Returns:
- the builder
-
annotationCollectionFilter
Predicate to determine if annotation collection is allowed for a particular keyword. This only has an effect if annotation collection is enabled.The default value is to not collect any annotation keywords if annotation collection is enabled.
This does not affect annotation collection required for evaluating keywords such as unevaluatedItems or unevaluatedProperties and only affects reporting.
- Parameters:
annotationCollectionFilter- the predicate accepting the keyword- Returns:
- the builder
-
formatAssertionsEnabled
Sets the format assertion enabled flag.- Parameters:
formatAssertionsEnabled- the format assertions enabled flag- Returns:
- the builder
-
failFast
Sets whether fast fail is enabled.- Parameters:
failFast- true to fast fail- Returns:
- the builder
-
readOnly
-
writeOnly
-
build
Builds theExecutionConfig.- Returns:
- the execution configuration
-