Interface SchemaString

All Superinterfaces:
Prototype.Api, SchemaItem
All Known Implementing Classes:
SchemaString.BuilderBase.SchemaStringImpl

public interface SchemaString extends Prototype.Api, SchemaItem
Json schema related to the strings.
See Also:
  • Method Details

    • builder

      static SchemaString.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static SchemaString.Builder builder(SchemaString instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static SchemaString create()
      Create a new instance with default values.
      Returns:
      a new instance
    • maxLength

      Optional<Long> maxLength()
      Maximum length of the string.
      Returns:
      maximum string length
    • minLength

      Optional<Long> minLength()
      Minimum length of the string.
      Returns:
      minimum string length
    • pattern

      Optional<String> pattern()
      String pattern to follow.
      Returns:
      string pattern
    • schemaType

      SchemaType schemaType()
    • generate

      default void generate(Hson.Struct.Builder builder)