Class Schema.Builder

  • Enclosing class:
    Schema

    public static final class Schema.Builder
    extends Object
    A builder class for Schema instances.
    • Method Detail

      • reference

        public Schema.Builder reference​(Reference reference)
        Sets the schema reference.
        Parameters:
        reference - The reference.
        Returns:
        This builder.
      • schema

        public Schema.Builder schema​(JsonValue schema)
        Sets the schema.
        Parameters:
        schema - The schema.
        Returns:
        This builder.
      • schema

        public Schema.Builder schema​(String key,
                                     Object value)
        Sets the schema by json key-value pairs.
        Parameters:
        key - json parameter name
        value - json parametr value
        Returns:
        This builder.
      • type

        public Schema.Builder type​(Class<?> type)
        Sets the schema.
        Parameters:
        type - The type to derive the schema from.
        Returns:
        This builder.
      • build

        public Schema build()
        Builds the Schema instance.
        Returns:
        Schema instance.