- All Superinterfaces:
Prototype.Api,SchemaItem
- All Known Implementing Classes:
SchemaNumber.BuilderBase.SchemaNumberImpl
Json schema related to the numbers.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forSchemaNumber.static classSchemaNumber.BuilderBase<BUILDER extends SchemaNumber.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SchemaNumber> Fluent API builder base forSchemaNumber. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaNumber.Builderbuilder()Create a new fluent API builder to customize configuration.static SchemaNumber.Builderbuilder(SchemaNumber instance) Create a new fluent API builder from an existing instance.static SchemaNumbercreate()Create a new instance with default values.Maximal exclusive value of the number.Minimal exclusive value of the number.default voidgenerate(Hson.Struct.Builder builder) Generated the Json schema item to the Json.maximum()Maximal value of the number.minimum()Minimal value of the number.Value restriction to be a multiple of a given number.Methods inherited from interface io.helidon.json.schema.SchemaItem
description, required, schemaType, title
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
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
Create a new instance with default values.- Returns:
- a new instance
-
generate
Description copied from interface:SchemaItemGenerated the Json schema item to the Json. This method servers mainly as a helpful tool for the Json generation. It should not be used.- Specified by:
generatein interfaceSchemaItem- Parameters:
builder- hson struct builder
-
multipleOf
Value restriction to be a multiple of a given number.- Returns:
- multiple value restriction
-
minimum
Minimal value of the number. Cannot be higher than maximal configured value. Mutually exclusive toexclusiveMinimum().- Returns:
- minimal value
-
maximum
Maximal value of the number. Cannot be lower than minimal configured value. Mutually exclusive toexclusiveMaximum().- Returns:
- maximal value
-
exclusiveMaximum
Maximal exclusive value of the number. Cannot be lower than minimal configured value. Mutually exclusive tomaximum().- Returns:
- maximal exclusive value
-
exclusiveMinimum
Minimal exclusive value of the number. Cannot be higher than maximal configured value. Mutually exclusive tominimum().- Returns:
- minimal exclusive value
-
schemaType
SchemaType schemaType()
-