Top Description Fields Constructors Methods
net.fortuna.ical4j.validate.schema

public Class JsonSchemaValidator

extends Object
implements Validator<StructuredData>
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.validate.Validator, java.io.Serializable
Imports
net.fortuna.ical4j.model.property.StructuredData, net.fortuna.ical4j.validate.ValidationException, .ValidationResult, java.net.URL

XXX: The validator library used in this class currently depends on the URLDecoder.decode(String, Charset) method added in Java 10. As such this will cause an error when used with Java < 10.

Field Summary

Modifier and TypeField and Description
private final URL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValidationResult
validate(StructuredData
the target of validation
target
)

Implements net.fortuna.ical4j.validate.Validator.validate.

Validates the target content by applying validation rules.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

schemaUrlback to summary
private final URL schemaUrl

Constructor Detail

JsonSchemaValidatorback to summary
public JsonSchemaValidator(URL schemaUrl)

Method Detail

validateback to summary
public ValidationResult validate(StructuredData target) throws ValidationException

Implements net.fortuna.ical4j.validate.Validator.validate.

Doc from net.fortuna.ical4j.validate.Validator.validate.

Validates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.

Parameters
target:StructuredData

the target of validation

Returns:ValidationResult

the result of validation applied to the specified target

Annotations
@Override
Exceptions
ValidationException:
indicates validation failure (implementation-specific)