Class ExecutionConfig
- java.lang.Object
-
- com.networknt.schema.ExecutionConfig
-
public class ExecutionConfig extends Object
Configuration per execution.
-
-
Constructor Summary
Constructors Constructor Description ExecutionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<String>
getAnnotationAllowedPredicate()
Gets the predicate to determine if annotation collection is allowed for a particular keyword.Locale
getLocale()
void
setAnnotationAllowedPredicate(Predicate<String> annotationAllowedPredicate)
Predicate to determine if annotation collection is allowed for a particular keyword.void
setLocale(Locale locale)
-
-
-
Method Detail
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
-
getAnnotationAllowedPredicate
public Predicate<String> getAnnotationAllowedPredicate()
Gets the predicate to determine if annotation collection is allowed for a particular keyword.The default value is to allow annotation collection.
Setting this to return false improves performance but keywords such as unevaluatedItems and unevaluatedProperties will fail to evaluate properly.
This will also affect reporting if annotations need to be in the output format.
unevaluatedProperties depends on properties, patternProperties and additionalProperties.
unevaluatedItems depends on items/prefixItems, additionalItems/items and contains.
- Returns:
- the predicate to determine if annotation collection is allowed for the keyword
-
setAnnotationAllowedPredicate
public void setAnnotationAllowedPredicate(Predicate<String> annotationAllowedPredicate)
Predicate to determine if annotation collection is allowed for a particular keyword.The default value is to allow annotation collection.
Setting this to return false improves performance but keywords such as unevaluatedItems and unevaluatedProperties will fail to evaluate properly.
This will also affect reporting if annotations need to be in the output format.
unevaluatedProperties depends on properties, patternProperties and additionalProperties.
unevaluatedItems depends on items/prefixItems, additionalItems/items and contains.
- Parameters:
annotationAllowedPredicate
- the predicate accepting the keyword
-
-