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>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaValidator(URL schemaUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResult
validate(StructuredData target)
Validates the target content by applying validation rules.
-
-
-
Constructor Detail
-
JsonSchemaValidator
public JsonSchemaValidator(URL schemaUrl)
-
-
Method Detail
-
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 interfaceValidator<StructuredData>
- Parameters:
target
- the target of validation- Returns:
- the result of validation applied to the specified target
- Throws:
ValidationException
- indicates validation failure (implementation-specific)
-
-