Class EnumValidation.Impl
- java.lang.Object
-
- org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
-
- org.apache.johnzon.jsonschema.spi.builtin.EnumValidation.Impl
-
- All Implemented Interfaces:
Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
- Enclosing class:
- EnumValidation
private static class EnumValidation.Impl extends BaseValidation
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
nullable
private Collection<jakarta.json.JsonValue>
valid
-
Fields inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
extractor, pointer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Impl(Collection<jakarta.json.JsonValue> valid, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, String pointer, boolean nullable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<ValidationResult.ValidationError>
apply(jakarta.json.JsonValue root)
String
toString()
-
Methods inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
isNull, onArray, onBoolean, onNumber, onObject, onString
-
-
-
-
Field Detail
-
valid
private final Collection<jakarta.json.JsonValue> valid
-
nullable
private final boolean nullable
-
-
Constructor Detail
-
Impl
private Impl(Collection<jakarta.json.JsonValue> valid, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, String pointer, boolean nullable)
-
-
Method Detail
-
apply
public Stream<ValidationResult.ValidationError> apply(jakarta.json.JsonValue root)
- Specified by:
apply
in interfaceFunction<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
- Overrides:
apply
in classBaseValidation
-
-