io.vertx.ext.json.schema.reactivex

## Class SchemaParser

- java.lang.Object
- - io.vertx.ext.json.schema.reactivex.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.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<SchemaParser>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SchemaParser(Object delegate)`
    `SchemaParser(SchemaParser delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SchemaParser` | `createDraft201909SchemaParser(SchemaRouter router)` Create a new `SchemaParser` for Json Schema Draft2019-09 schemas
    `static SchemaParser` | `createDraft7SchemaParser(SchemaRouter router)` Create a new `SchemaParser` for Json Schema Draft-7 schemas
    `static SchemaParser` | `createOpenAPI3SchemaParser(SchemaRouter router)` Create a new `SchemaParser` for OpenAPI schemas
    `boolean` | `equals(Object o)`
    `SchemaParser` | `getDelegate()`
    `SchemaRouter` | `getSchemaRouter()` Get schema router registered to this schema parser
    `int` | `hashCode()`
    `static SchemaParser` | `newInstance(SchemaParser arg)`
    `Schema` | `parse(Boolean jsonSchema)` Builds a true of false schema assigning a random scope
    `Schema` | `parse(Boolean jsonSchema, JsonPointer schemaPointer)` Builds a true of false schema
    `Schema` | `parse(JsonObject jsonSchema)` Build a schema from provided json assigning a random scope.
    `Schema` | `parse(JsonObject jsonSchema, JsonPointer schemaPointer)` Build a schema from provided json.
    `Schema` | `parseFromString(String unparsedJson)` Build a schema from provided unparsed json assigning a random scope.
    `Schema` | `parseFromString(String unparsedJson, JsonPointer schemaPointer)` Build a schema from provided unparsed json.
    `String` | `toString()`
    `SchemaParser` | `withStringFormatValidator(String formatName, java.util.function.Predicate<String> predicate)` Add a custom format validator
    `SchemaParser` | `withValidatorFactory(ValidatorFactory factory)` Add a to this schema parser to support custom keywords

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<SchemaParser> __TYPE_ARG

  - ### Constructor Detail

    - #### SchemaParser

          public SchemaParser(SchemaParser delegate)

    - #### SchemaParser

          public SchemaParser(Object delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public SchemaParser getDelegate()

    - #### parse

          public Schema parse(JsonObject jsonSchema)

      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

          public Schema parse(JsonObject jsonSchema,
                              JsonPointer schemaPointer)

      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

          public Schema parse(Boolean jsonSchema)

      Builds a true of false schema assigning a random scope
      Parameters:
        `jsonSchema` - JSON representing the schema
      Returns:
        the schema instance

    - #### parse

          public Schema parse(Boolean jsonSchema,
                              JsonPointer schemaPointer)

      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

          public Schema parseFromString(String unparsedJson)

      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

          public Schema parseFromString(String unparsedJson,
                                        JsonPointer schemaPointer)

      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

          public SchemaRouter getSchemaRouter()

      Get schema router registered to this schema parser
      Returns:

    - #### createOpenAPI3SchemaParser

          public static SchemaParser createOpenAPI3SchemaParser(SchemaRouter router)

      Create a new `SchemaParser` for OpenAPI schemas
      Parameters:
        `router` -
      Returns:

    - #### createDraft7SchemaParser

          public static SchemaParser createDraft7SchemaParser(SchemaRouter router)

      Create a new `SchemaParser` for Json Schema Draft-7 schemas
      Parameters:
        `router` -
      Returns:

    - #### createDraft201909SchemaParser

          public static SchemaParser createDraft201909SchemaParser(SchemaRouter router)

      Create a new `SchemaParser` for Json Schema Draft2019-09 schemas
      Parameters:
        `router` -
      Returns:

    - #### withValidatorFactory

          public SchemaParser withValidatorFactory(ValidatorFactory factory)

      Add a to this schema parser to support custom keywords
      Parameters:
        `factory` - new factory
      Returns:
        a reference to this

    - #### withStringFormatValidator

          public SchemaParser withStringFormatValidator(String formatName,
                                                        java.util.function.Predicate<String> predicate)

      Add a custom format validator
      Parameters:
        `formatName` - format name
        `predicate` - predicate for the new format
      Returns:
        a reference to this

    - #### newInstance

          public static SchemaParser newInstance(SchemaParser arg)

Copyright © 2020 Eclipse. All rights reserved.