Uses of Class
org.everit.json.schema.Schema
-
Packages that use Schema Package Description org.everit.json.schema org.everit.json.schema.event org.everit.json.schema.internal org.everit.json.schema.loader -
-
Uses of Schema in org.everit.json.schema
Classes in org.everit.json.schema with type parameters of type Schema Modifier and Type Class Description static class
Schema.Builder<S extends Schema>
Abstract builder class for the builder classes ofSchema
subclasses.Subclasses of Schema in org.everit.json.schema Modifier and Type Class Description class
ArraySchema
Array schema validator.class
BooleanSchema
Boolean schema validator.class
CombinedSchema
Validator forallOf
,oneOf
,anyOf
schemas.class
ConditionalSchema
Validator forif
,then
,else
schemas.class
ConstSchema
class
EmptySchema
A schema not specifying any restrictions, ie.class
EnumSchema
Enum schema validator.class
FalseSchema
class
NotSchema
Not
schema validator.class
NullSchema
Null
schema validator.class
NumberSchema
Number schema validator.class
ObjectSchema
Object schema validator.class
ReferenceSchema
This class is used bySchemaLoader
to resolve JSON pointers during the construction of the schema.class
StringSchema
String
schema validator.class
TrueSchema
Methods in org.everit.json.schema that return Schema Modifier and Type Method Description Schema
ArraySchema. getAllItemSchema()
Schema
ArraySchema. getContainedItemSchema()
Schema
NotSchema. getMustNotMatch()
Schema
ObjectSchema. getPropertyNameSchema()
Schema
ReferenceSchema. getReferredSchema()
Schema
ArraySchema. getSchemaOfAdditionalItems()
Schema
ObjectSchema. getSchemaOfAdditionalProperties()
Schema
ValidationException. getViolatedSchema()
Methods in org.everit.json.schema that return types with arguments of type Schema Modifier and Type Method Description Optional<Schema>
ConditionalSchema. getElseSchema()
Optional<Schema>
ConditionalSchema. getIfSchema()
List<Schema>
ArraySchema. getItemSchemas()
Map<Pattern,Schema>
ObjectSchema. getPatternProperties()
Deprecated.Map<String,Schema>
ObjectSchema. getPropertySchemas()
Map<String,Schema>
ObjectSchema. getSchemaDependencies()
Collection<Schema>
CombinedSchema. getSubschemas()
Optional<Schema>
ConditionalSchema. getThenSchema()
Methods in org.everit.json.schema with parameters of type Schema Modifier and Type Method Description ArraySchema.Builder
ArraySchema.Builder. addItemSchema(Schema itemSchema)
Adds an item schema for tuple validation.ObjectSchema.Builder
ObjectSchema.Builder. addPropertySchema(String propName, Schema schema)
Adds a property schema.ArraySchema.Builder
ArraySchema.Builder. allItemSchema(Schema allItemSchema)
ArraySchema.Builder
ArraySchema.Builder. containsItemSchema(Schema contained)
ConditionalSchema.Builder
ConditionalSchema.Builder. elseSchema(Schema elseSchema)
ConditionalSchema.Builder
ConditionalSchema.Builder. ifSchema(Schema ifSchema)
NotSchema.Builder
NotSchema.Builder. mustNotMatch(Schema mustNotMatch)
ObjectSchema.Builder
ObjectSchema.Builder. patternProperty(String pattern, Schema schema)
Deprecated.ObjectSchema.Builder
ObjectSchema.Builder. patternProperty(Pattern pattern, Schema schema)
Deprecated.ObjectSchema.Builder
ObjectSchema.Builder. patternProperty(Regexp pattern, Schema schema)
void
Validator. performValidation(Schema schema, Object input)
ValidationException
ValidationException. prepend(String fragment, Schema violatedSchema)
Creates a newViolationException
instance based on this one, but with changedJSON pointer
and {linkviolated schema
.ObjectSchema.Builder
ObjectSchema.Builder. propertyNameSchema(Schema propertyNameSchema)
ObjectSchema.Builder
ObjectSchema.Builder. schemaDependency(String ifPresent, Schema expectedSchema)
ArraySchema.Builder
ArraySchema.Builder. schemaOfAdditionalItems(Schema schemaOfAdditionalItems)
ObjectSchema.Builder
ObjectSchema.Builder. schemaOfAdditionalProperties(Schema schemaOfAdditionalProperties)
void
ReferenceSchema. setReferredSchema(Schema referredSchema)
Called bySchemaLoader.load()
to set the referred root schema after completing the loading process of the entire schema document.CombinedSchema.Builder
CombinedSchema.Builder. subschema(Schema subschema)
ConditionalSchema.Builder
ConditionalSchema.Builder. thenSchema(Schema thenSchema)
static void
ValidationException. throwFor(Schema rootFailingSchema, List<ValidationException> failures)
Sort of static factory method.Method parameters in org.everit.json.schema with type arguments of type Schema Modifier and Type Method Description static CombinedSchema.Builder
CombinedSchema. allOf(Collection<Schema> schemas)
static CombinedSchema.Builder
CombinedSchema. anyOf(Collection<Schema> schemas)
static CombinedSchema.Builder
CombinedSchema. builder(Collection<Schema> subschemas)
static CombinedSchema.Builder
CombinedSchema. oneOf(Collection<Schema> schemas)
CombinedSchema.Builder
CombinedSchema.Builder. subschemas(Collection<Schema> subschemas)
Constructors in org.everit.json.schema with parameters of type Schema Constructor Description ValidationException(Schema violatedSchema, Class<?> expectedType, Object actualValue)
Constructor, creates an instance withkeyword="type"
.ValidationException(Schema violatedSchema, Class<?> expectedType, Object actualValue, String keyword)
Deprecated.ValidationException(Schema violatedSchema, Class<?> expectedType, Object actualValue, String keyword, String schemaLocation)
Constructor for type-mismatch failures.ValidationException(Schema violatedSchema, String message)
Deprecated.use one of the constructors which explicitly specify the violated keyword insteadValidationException(Schema violatedSchema, String message, String keyword)
Deprecated.ValidationException(Schema violatedSchema, String message, String keyword, String schemaLocation)
Constructor.ValidationException(Schema violatedSchema, String message, List<ValidationException> causingExceptions)
Deprecated.use one of the constructors which explicitly specify the keyword instead -
Uses of Schema in org.everit.json.schema.event
Classes in org.everit.json.schema.event with type parameters of type Schema Modifier and Type Class Description class
ValidationEvent<S extends Schema>
Fields in org.everit.json.schema.event declared as Schema Modifier and Type Field Description protected S
ValidationEvent. schema
Methods in org.everit.json.schema.event that return Schema Modifier and Type Method Description Schema
SchemaReferencedEvent. getReferredSchema()
Schema
CombinedSchemaValidationEvent. getSubSchema()
Constructors in org.everit.json.schema.event with parameters of type Schema Constructor Description CombinedSchemaMatchEvent(CombinedSchema schema, Schema subSchema, Object instance)
CombinedSchemaMismatchEvent(CombinedSchema schema, Schema subSchema, Object instance, ValidationException failure)
CombinedSchemaValidationEvent(CombinedSchema schema, Schema subSchema, Object instance)
SchemaReferencedEvent(ReferenceSchema schema, Object instance, Schema referredSchema)
-
Uses of Schema in org.everit.json.schema.internal
Method parameters in org.everit.json.schema.internal with type arguments of type Schema Modifier and Type Method Description <K> void
JSONPrinter. printSchemaMap(Map<K,Schema> input)
-
Uses of Schema in org.everit.json.schema.loader
Methods in org.everit.json.schema.loader that return Schema Modifier and Type Method Description static Schema
SchemaLoader. load(org.json.JSONObject schemaJson)
Loads a JSON schema to a schema validator using adefault HTTP client
.static Schema
SchemaLoader. load(org.json.JSONObject schemaJson, SchemaClient schemaClient)
Creates Schema instance from its JSON representation.
-