Module ical4j.core

Class JsonSchemaValidator

java.lang.Object
net.fortuna.ical4j.validate.schema.JsonSchemaValidator
All Implemented Interfaces:
Serializable, Validator<StructuredData>

public class JsonSchemaValidator extends Object implements Validator<StructuredData>
XXX: The validotor 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.
See Also:
  • Constructor Details

    • JsonSchemaValidator

      public JsonSchemaValidator(URL schemaUrl)
  • Method Details

    • validate

      public ValidationResult validate(StructuredData target) throws ValidationException
      Description copied from interface: Validator
      Validates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.
      Specified by:
      validate in interface Validator<StructuredData>
      Parameters:
      target - the target of validation
      Returns:
      the result of validation applied to the specified target
      Throws:
      ValidationException - indicates validation failure (implementation-specific)