Class SchemaParser


  • public class SchemaParser
    extends Object
    Parse a Json Schema. The parser can be extended to support custom keywords using

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

    • Constructor Detail

      • SchemaParser

        public SchemaParser​(SchemaParser delegate)
      • SchemaParser

        public SchemaParser​(Object delegate)
    • Method Detail

      • hashCode

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

        @Deprecated
        public Schema parse​(JsonObject jsonSchema)
        Deprecated.
        Build a schema from provided json assigning a random scope. This method registers the parsed schema (and relative subschemas) to the schema router
        Parameters:
        jsonSchema - JSON representing the schema
        Returns:
        the schema instance
      • parse

        @Deprecated
        public Schema parse​(JsonObject jsonSchema,
                            JsonPointer schemaPointer)
        Deprecated.
        Build a schema from provided json. This method registers the parsed schema (and relative subschemas) to the schema router
        Parameters:
        jsonSchema - JSON representing the schema
        schemaPointer - Scope of schema. Must be a JSONPointer with absolute URI
        Returns:
        the schema instance
      • parse

        @Deprecated
        public Schema parse​(Boolean jsonSchema)
        Deprecated.
        Builds a true of false schema assigning a random scope
        Parameters:
        jsonSchema - JSON representing the schema
        Returns:
        the schema instance
      • parse

        @Deprecated
        public Schema parse​(Boolean jsonSchema,
                            JsonPointer schemaPointer)
        Deprecated.
        Builds a true of false schema
        Parameters:
        jsonSchema - JSON representing the schema
        schemaPointer - Scope of schema. Must be a JSONPointer with absolute URI
        Returns:
        the schema instance
      • parseFromString

        @Deprecated
        public Schema parseFromString​(String unparsedJson)
        Deprecated.
        Build a schema from provided unparsed json assigning a random scope. This method registers the parsed schema (and relative subschemas) to the schema router
        Parameters:
        unparsedJson - Unparsed JSON representing the schema.
        Returns:
        the schema instance
      • parseFromString

        @Deprecated
        public Schema parseFromString​(String unparsedJson,
                                      JsonPointer schemaPointer)
        Deprecated.
        Build a schema from provided unparsed json. This method registers the parsed schema (and relative subschemas) to the schema router
        Parameters:
        unparsedJson - Unparsed JSON representing the schema.
        schemaPointer - Scope of schema. Must be a JSONPointer with absolute URI
        Returns:
        the schema instance
      • getSchemaRouter

        @Deprecated
        public SchemaRouter getSchemaRouter()
        Deprecated.
        Get schema router registered to this schema parser
        Returns:
      • withValidatorFactory

        @Deprecated
        public SchemaParser withValidatorFactory​(ValidatorFactory factory)
        Deprecated.
        Add a to this schema parser to support custom keywords
        Parameters:
        factory - new factory
        Returns:
        a reference to this
      • withStringFormatValidator

        @Deprecated
        public SchemaParser withStringFormatValidator​(String formatName,
                                                      Predicate<String> predicate)
        Deprecated.
        Add a custom format validator
        Parameters:
        formatName - format name
        predicate - predicate for the new format
        Returns:
        a reference to this