Class Schema.BuilderBase.SchemaImpl

java.lang.Object
io.helidon.json.schema.Schema.BuilderBase.SchemaImpl
All Implemented Interfaces:
Prototype.Api, Schema
Enclosing class:
Schema.BuilderBase<BUILDER extends Schema.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Schema>

protected static class Schema.BuilderBase.SchemaImpl extends Object implements Schema
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • SchemaImpl

      protected SchemaImpl(Schema.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • generate

      public String generate()
      Description copied from interface: Schema
      Generate the String representation of the schema.
      Specified by:
      generate in interface Schema
      Returns:
      Json schema in a String format
    • generateNoKeywords

      public String generateNoKeywords()
      Description copied from interface: Schema
      Generate the String representation of the schema without schema keywords. Keywords like $schema or $id will not be included.
      Specified by:
      generateNoKeywords in interface Schema
      Returns:
      Json schema in a String format
    • id

      public Optional<URI> id()
      Description copied from interface: Schema
      The base URI for resolving relative references.
      Specified by:
      id in interface Schema
      Returns:
      configured base URI
    • root

      public SchemaItem root()
      Description copied from interface: Schema
      Root schema.
      Specified by:
      root in interface Schema
      Returns:
      root json schema
    • rootObject

      public Optional<SchemaObject> rootObject()
      Description copied from interface: Schema
      Root of the schema should be validated as an object.
      Specified by:
      rootObject in interface Schema
      Returns:
      object root schema
    • rootArray

      public Optional<SchemaArray> rootArray()
      Description copied from interface: Schema
      Root of the schema should be validated as an array.
      Specified by:
      rootArray in interface Schema
      Returns:
      array root schema
    • rootNumber

      public Optional<SchemaNumber> rootNumber()
      Description copied from interface: Schema
      Root of the schema should be validated as a number.
      Specified by:
      rootNumber in interface Schema
      Returns:
      number root schema
    • rootInteger

      public Optional<SchemaInteger> rootInteger()
      Description copied from interface: Schema
      Root of the schema should be validated as an integer.
      Specified by:
      rootInteger in interface Schema
      Returns:
      integer root schema
    • rootString

      public Optional<SchemaString> rootString()
      Description copied from interface: Schema
      Root of the schema should be validated as a string.
      Specified by:
      rootString in interface Schema
      Returns:
      string root schema
    • rootBoolean

      public Optional<SchemaBoolean> rootBoolean()
      Description copied from interface: Schema
      Root of the schema should be validated as a boolean.
      Specified by:
      rootBoolean in interface Schema
      Returns:
      boolean root schema
    • rootNull

      public Optional<SchemaNull> rootNull()
      Description copied from interface: Schema
      Root of the schema should be validated as a null.
      Specified by:
      rootNull in interface Schema
      Returns:
      null root schema
    • 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