Class PatternValidation
- java.lang.Object
-
- org.apache.johnzon.jsonschema.spi.builtin.PatternValidation
-
- All Implemented Interfaces:
ValidationExtension
public class PatternValidation extends Object implements ValidationExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PatternValidation.Impl
-
Field Summary
Fields Modifier and Type Field Description private Function<String,Predicate<CharSequence>>
predicateFactory
-
Constructor Summary
Constructors Constructor Description PatternValidation(Function<String,Predicate<CharSequence>> predicateFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>>
create(ValidationContext model)
-
-
-
Field Detail
-
predicateFactory
private final Function<String,Predicate<CharSequence>> predicateFactory
-
-
Constructor Detail
-
PatternValidation
public PatternValidation(Function<String,Predicate<CharSequence>> predicateFactory)
-
-
Method Detail
-
create
public Optional<Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>> create(ValidationContext model)
- Specified by:
create
in interfaceValidationExtension
-
-