Class Validator


  • public class Validator
    extends Object
    A validator, validates some input object using a well known schema.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • Validator

        public Validator​(io.vertx.json.schema.Validator delegate)
      • Validator

        public Validator​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.json.schema.Validator getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static Validator create​(JsonSchema schema,
                                       io.vertx.json.schema.JsonSchemaOptions options)
        Parameters:
        schema - the initial schema
        options - the validator options
        Returns:
        a validator instance
      • create

        public static Validator create​(JsonSchema schema,
                                       io.vertx.json.schema.JsonSchemaOptions options,
                                       JsonFormatValidator jsonFormatValidator)
        Parameters:
        schema - the initial schema
        options - the validator options
        jsonFormatValidator - the custom JSON format validator
        Returns:
        a validator instance
      • validate

        public io.vertx.json.schema.OutputUnit validate​(Object instance)
        Parameters:
        instance - instance to validate
        Returns:
        returns a output unit object as defined by the options
      • newInstance

        public static Validator newInstance​(io.vertx.json.schema.Validator arg)