Class BaseValidation
- java.lang.Object
-
- org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
-
- All Implemented Interfaces:
Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
- Direct Known Subclasses:
BaseNumberValidation
,ContainsValidation.ItemsValidator
,EnumValidation.Impl
,ItemsValidation.ItemsValidator
,MaxItemsValidation.Impl
,MaxLengthValidation.Impl
,MaxPropertiesValidation.Impl
,MinItemsValidation.Impl
,MinLengthValidation.Impl
,MinPropertiesValidation.Impl
,PatternValidation.Impl
,RequiredValidation.Impl
,TypeValidation.Impl
,UniqueItemsValidation.Impl
public abstract class BaseValidation extends Object implements Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
-
-
Constructor Summary
Constructors Constructor Description BaseValidation(String pointer, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, jakarta.json.JsonValue.ValueType validType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<ValidationResult.ValidationError>
apply(jakarta.json.JsonValue obj)
protected boolean
isNull(jakarta.json.JsonValue obj)
protected Stream<ValidationResult.ValidationError>
onArray(jakarta.json.JsonArray array)
protected Stream<ValidationResult.ValidationError>
onBoolean(boolean value)
protected Stream<ValidationResult.ValidationError>
onNumber(jakarta.json.JsonNumber number)
protected Stream<ValidationResult.ValidationError>
onObject(jakarta.json.JsonObject object)
protected Stream<ValidationResult.ValidationError>
onString(jakarta.json.JsonString cast)
-
-
-
Method Detail
-
apply
public Stream<ValidationResult.ValidationError> apply(jakarta.json.JsonValue obj)
- Specified by:
apply
in interfaceFunction<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
-
isNull
protected boolean isNull(jakarta.json.JsonValue obj)
-
onArray
protected Stream<ValidationResult.ValidationError> onArray(jakarta.json.JsonArray array)
-
onObject
protected Stream<ValidationResult.ValidationError> onObject(jakarta.json.JsonObject object)
-
onNumber
protected Stream<ValidationResult.ValidationError> onNumber(jakarta.json.JsonNumber number)
-
onBoolean
protected Stream<ValidationResult.ValidationError> onBoolean(boolean value)
-
onString
protected Stream<ValidationResult.ValidationError> onString(jakarta.json.JsonString cast)
-
-