Class SchemaItem.BuilderBase.SchemaItemImpl

java.lang.Object
io.helidon.json.schema.SchemaItem.BuilderBase.SchemaItemImpl
All Implemented Interfaces:
Prototype.Api, SchemaItem
Direct Known Subclasses:
SchemaArray.BuilderBase.SchemaArrayImpl, SchemaBoolean.BuilderBase.SchemaBooleanImpl, SchemaInteger.BuilderBase.SchemaIntegerImpl, SchemaNull.BuilderBase.SchemaNullImpl, SchemaNumber.BuilderBase.SchemaNumberImpl, SchemaObject.BuilderBase.SchemaObjectImpl, SchemaString.BuilderBase.SchemaStringImpl
Enclosing class:
SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SchemaItem>

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

    • SchemaItemImpl

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

    • title

      public Optional<String> title()
      Description copied from interface: SchemaItem
      Title of the item.
      Specified by:
      title in interface SchemaItem
      Returns:
      item title
    • description

      public Optional<String> description()
      Description copied from interface: SchemaItem
      Description of the item.
      Specified by:
      description in interface SchemaItem
      Returns:
      item description
    • required

      public boolean required()
      Description copied from interface: SchemaItem
      Used in the object properties to mark required property.
      Specified by:
      required in interface SchemaItem
      Returns:
      whether object property is required
    • schemaType

      public SchemaType schemaType()
      Description copied from interface: SchemaItem
      Schema type of the item.
      Specified by:
      schemaType in interface SchemaItem
      Returns:
      schema type
    • 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
    • generate

      @Deprecated(forRemoval=true, since="4.3.0") default void generate(Hson.Struct.Builder builder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      this method is not intended to be broadly used. Will be removed later.
      Generated the Json schema item to the Json. This method servers mainly as a helpful tool for the Json generation. It should not be used.
      Parameters:
      builder - hson struct builder