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 RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • Validator

        public Validator​(Validator delegate)
      • Validator

        public Validator​(Object delegate)
    • Method Detail

      • hashCode

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

        public Validator getDelegate()
      • create

        public static Validator create​(JsonSchema schema,
                                       JsonSchemaOptions options)
        Creates a new validator with some initial schema and options.
        Parameters:
        schema - the initial schema
        options - the validator options
        Returns:
        a validator instance
      • validate

        public OutputUnit validate​(Object instance)
        Validate a given input against the initial schema
        Parameters:
        instance - instance to validate
        Returns:
        returns a output unit object as defined by the options