Module io.helidon.json.schema
Package io.helidon.json.schema
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>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.json.schema.SchemaItem
SchemaItem.Builder, SchemaItem.BuilderBase<BUILDER extends SchemaItem.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaItem> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaItemImpl
(SchemaItem.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionDescription of the item.boolean
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.int
hashCode()
boolean
required()
Used in the object properties to mark required property.Schema type of the item.title()
Title of the item.toString()
-
Constructor Details
-
SchemaItemImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
title
Description copied from interface:SchemaItem
Title of the item.- Specified by:
title
in interfaceSchemaItem
- Returns:
- item title
-
description
Description copied from interface:SchemaItem
Description of the item.- Specified by:
description
in interfaceSchemaItem
- 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 interfaceSchemaItem
- Returns:
- whether object property is required
-
schemaType
Description copied from interface:SchemaItem
Schema type of the item.- Specified by:
schemaType
in interfaceSchemaItem
- Returns:
- schema type
-
toString
-
equals
-
hashCode
public int hashCode() -
generate
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
-