Package org.burningwave.json
Interface Check<S extends com.fasterxml.jackson.module.jsonSchema.JsonSchema,T,O extends Check<S,T,O>>
- All Known Implementing Classes:
Check.Abst,Check.Group,IndexedObjectCheck,LeafCheck,LeafCheck.OfString,ObjectCheck
public interface Check<S extends com.fasterxml.jackson.module.jsonSchema.JsonSchema,T,O extends Check<S,T,O>>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCheck.Abst<S extends com.fasterxml.jackson.module.jsonSchema.JsonSchema,T, C extends Check.Abst<S, T, C>> static enumstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault Oexecute(Consumer<Path.ValidationContext<S, T>> action) static Check.GroupforAll()static IndexedObjectCheck<Boolean> static IndexedObjectCheck<Integer> static IndexedObjectCheck<Number> static <I> IndexedObjectCheck<I> static IndexedObjectCheck<String> static ObjectCheckstatic <O> Check.Groupwhen(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.JsonSchema, O>> predicate) whenBooleanValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema, Boolean>> predicate) whenBooleanValuePathContains(String... pathSegments) whenBooleanValuePathEndsWith(String... pathSegments) whenBooleanValuePathEquals(String... pathSegments) whenBooleanValuePathStartsWith(String... pathSegments) static IndexedObjectCheck<Boolean> whenIndexedBooleans(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Boolean>>> predicate) static IndexedObjectCheck<Boolean> static IndexedObjectCheck<Boolean> static IndexedObjectCheck<Boolean> static IndexedObjectCheck<Boolean> static IndexedObjectCheck<Integer> whenIndexedIntegers(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Integer>>> predicate) static IndexedObjectCheck<Integer> whenIndexedIntegersPathContains(String... pathSegments) static IndexedObjectCheck<Integer> whenIndexedIntegersPathEndsWith(String... pathSegments) static IndexedObjectCheck<Integer> whenIndexedIntegersPathEquals(String... pathSegments) static IndexedObjectCheck<Integer> whenIndexedIntegersPathStartsWith(String... pathSegments) static IndexedObjectCheck<Number> whenIndexedNumbers(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Number>>> predicate) static IndexedObjectCheck<Number> whenIndexedNumbersPathContains(String... pathSegments) static IndexedObjectCheck<Number> whenIndexedNumbersPathEndsWith(String... pathSegments) static IndexedObjectCheck<Number> whenIndexedNumbersPathEquals(String... pathSegments) static IndexedObjectCheck<Number> whenIndexedNumbersPathStartsWith(String... pathSegments) static <I> IndexedObjectCheck<I> whenIndexedObject(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<I>>> predicate) static <I> IndexedObjectCheck<I> whenIndexedObjectPathContains(String... pathSegments) static <I> IndexedObjectCheck<I> whenIndexedObjectPathEndsWith(String... pathSegments) static <I> IndexedObjectCheck<I> whenIndexedObjectPathEquals(String... pathSegments) static <I> IndexedObjectCheck<I> whenIndexedObjectPathStartsWith(String... pathSegments) static IndexedObjectCheck<String> whenIndexedStrings(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<String>>> predicate) static IndexedObjectCheck<String> whenIndexedStringsPathContains(String... pathSegments) static IndexedObjectCheck<String> whenIndexedStringsPathEndsWith(String... pathSegments) static IndexedObjectCheck<String> whenIndexedStringsPathEquals(String... pathSegments) static IndexedObjectCheck<String> whenIndexedStringsPathStartsWith(String... pathSegments) whenIntegerValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema, Integer>> predicate) whenIntegerValuePathContains(String... pathSegments) whenIntegerValuePathEndsWith(String... pathSegments) whenIntegerValuePathEquals(String... pathSegments) whenIntegerValuePathStartsWith(String... pathSegments) whenNumberValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.NumberSchema, Number>> predicate) whenNumberValuePathContains(String... pathSegments) whenNumberValuePathEndsWith(String... pathSegments) whenNumberValuePathEquals(String... pathSegments) whenNumberValuePathStartsWith(String... pathSegments) static ObjectCheckwhenObject(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema, Map<String, Object>>> predicate) static ObjectCheckwhenObjectPathContains(String... pathSegments) static ObjectCheckwhenObjectPathEndsWith(String... pathSegments) static ObjectCheckwhenObjectPathEquals(String... pathSegments) static ObjectCheckwhenObjectPathStartsWith(String... pathSegments) static Check.GroupwhenPathContains(String... pathSegments) static Check.GroupwhenPathEndsWith(String... pathSegments) static Check.GroupwhenPathEquals(String... pathSegments) static Check.GroupwhenPathStartsWith(String... pathSegments) static LeafCheck.OfStringwhenStringValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.StringSchema, String>> predicate) whenStringValuePathContains(String... pathSegments) whenStringValuePathEndsWith(String... pathSegments) whenStringValuePathEquals(String... pathSegments) whenStringValuePathStartsWith(String... pathSegments) whenValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.JsonSchema, Object>> predicate) whenValuePathContains(String... pathSegments) whenValuePathEndsWith(String... pathSegments) whenValuePathEquals(String... pathSegments) whenValuePathStartsWith(String... pathSegments)
-
Method Details
-
execute
-
checkMandatory
-
forAll
-
when
static <O> Check.Group when(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.JsonSchema, O>> predicate) -
whenPathStartsWith
-
whenPathEndsWith
-
whenPathContains
-
whenPathEquals
-
forAllValues
-
whenValue
static LeafCheck<com.fasterxml.jackson.module.jsonSchema.JsonSchema,Object> whenValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.JsonSchema, Object>> predicate) -
whenValuePathStartsWith
-
whenValuePathEndsWith
-
whenValuePathContains
-
whenValuePathEquals
-
forAllStringValues
-
whenStringValue
static LeafCheck.OfString whenStringValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.StringSchema, String>> predicate) -
whenStringValuePathStartsWith
-
whenStringValuePathEndsWith
-
whenStringValuePathContains
-
whenStringValuePathEquals
-
forAllIntegerValues
-
whenIntegerValue
static LeafCheck<com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema,Integer> whenIntegerValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema, Integer>> predicate) -
whenIntegerValuePathStartsWith
-
whenIntegerValuePathEndsWith
-
whenIntegerValuePathContains
-
whenIntegerValuePathEquals
-
forAllNumberValues
-
whenNumberValue
static LeafCheck<com.fasterxml.jackson.module.jsonSchema.types.NumberSchema,Number> whenNumberValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.NumberSchema, Number>> predicate) -
whenNumberValuePathStartsWith
-
whenNumberValuePathEndsWith
-
whenNumberValuePathContains
-
whenNumberValuePathEquals
-
forAllBooleanValues
-
whenBooleanValue
static LeafCheck<com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema,Boolean> whenBooleanValue(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema, Boolean>> predicate) -
whenBooleanValuePathStartsWith
-
whenBooleanValuePathEndsWith
-
whenBooleanValuePathEquals
-
whenBooleanValuePathContains
-
forAllObjects
-
whenObject
static ObjectCheck whenObject(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema, Map<String, Object>>> predicate) -
whenObjectPathStartsWith
-
whenObjectPathEndsWith
-
whenObjectPathContains
-
whenObjectPathEquals
-
forAllIndexedObjects
-
whenIndexedObject
static <I> IndexedObjectCheck<I> whenIndexedObject(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<I>>> predicate) -
whenIndexedObjectPathStartsWith
-
whenIndexedObjectPathEndsWith
-
whenIndexedObjectPathContains
-
whenIndexedObjectPathEquals
-
forAllIndexedStrings
-
whenIndexedStrings
static IndexedObjectCheck<String> whenIndexedStrings(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<String>>> predicate) -
whenIndexedStringsPathStartsWith
-
whenIndexedStringsPathEndsWith
-
whenIndexedStringsPathContains
-
whenIndexedStringsPathEquals
-
forAllIndexedIntegers
-
whenIndexedIntegers
static IndexedObjectCheck<Integer> whenIndexedIntegers(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Integer>>> predicate) -
whenIndexedIntegersPathStartsWith
-
whenIndexedIntegersPathEndsWith
-
whenIndexedIntegersPathContains
-
whenIndexedIntegersPathEquals
-
forAllIndexedNumbers
-
whenIndexedNumbers
static IndexedObjectCheck<Number> whenIndexedNumbers(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Number>>> predicate) -
whenIndexedNumbersPathStartsWith
-
whenIndexedNumbersPathEndsWith
-
whenIndexedNumbersPathContains
-
whenIndexedNumbersPathEquals
-
forAllIndexedBooleans
-
whenIndexedBooleans
static IndexedObjectCheck<Boolean> whenIndexedBooleans(Predicate<Path.ValidationContext<com.fasterxml.jackson.module.jsonSchema.types.ArraySchema, List<Boolean>>> predicate) -
whenIndexedBooleansPathStartsWith
-
whenIndexedBooleansPathEndsWith
-
whenIndexedBooleansPathContains
-
whenIndexedBooleansPathEquals
-