Class BaseNumberValidation
- java.lang.Object
-
- org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
-
- org.apache.johnzon.jsonschema.spi.builtin.BaseNumberValidation
-
- All Implemented Interfaces:
Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
- Direct Known Subclasses:
ExclusiveMaximumValidation.Impl
,ExclusiveMinimumValidation.Impl
,MaximumValidation.Impl
,MinimumValidation.Impl
,MultipleOfValidation.Impl
abstract class BaseNumberValidation extends BaseValidation
-
-
Field Summary
Fields Modifier and Type Field Description protected double
bound
-
Fields inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
extractor, pointer
-
-
Constructor Summary
Constructors Constructor Description BaseNumberValidation(String pointer, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, double bound)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
isValid(double val)
protected Stream<ValidationResult.ValidationError>
onNumber(jakarta.json.JsonNumber number)
protected abstract Stream<ValidationResult.ValidationError>
toError(double val)
-
Methods inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
apply, isNull, onArray, onBoolean, onObject, onString
-
-
-
-
Method Detail
-
onNumber
protected Stream<ValidationResult.ValidationError> onNumber(jakarta.json.JsonNumber number)
- Overrides:
onNumber
in classBaseValidation
-
isValid
protected abstract boolean isValid(double val)
-
toError
protected abstract Stream<ValidationResult.ValidationError> toError(double val)
-
-