- All Superinterfaces:
Prototype.Api
,SchemaItem
- All Known Implementing Classes:
SchemaObject.BuilderBase.SchemaObjectImpl
Json schema related to the objects.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forSchemaObject
.static class
SchemaObject.BuilderBase<BUILDER extends SchemaObject.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SchemaObject> Fluent API builder base forSchemaObject
. -
Method Summary
Modifier and TypeMethodDescriptionWhether any additional properties are allowed.Map of all array properties.Map of all boolean properties.static SchemaObject.Builder
builder()
Create a new fluent API builder to customize configuration.static SchemaObject.Builder
builder
(SchemaObject instance) Create a new fluent API builder from an existing instance.static SchemaObject
create()
Create a new instance with default values.default void
generate
(Hson.Struct.Builder builder) Map of all integer properties.Maximum number of the object properties.Minimum number of the object properties.Map of all null properties.Map of all number properties.Map of all object properties.Map of all registered properties.Map of all string properties.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
-
maxProperties
Maximum number of the object properties.- Returns:
- maximum number of the properties
-
minProperties
Minimum number of the object properties.- Returns:
- minimum number of the properties
-
additionalProperties
Whether any additional properties are allowed. If set to true, all the available properties have to be added via corresponding property methods.- Returns:
- whether are additional properties allowed
-
properties
Map<String,SchemaItem> properties()Map of all registered properties.- Returns:
- all registered properties
-
stringProperties
Map<String,SchemaString> stringProperties()Map of all string properties.- Returns:
- all string properties
-
objectProperties
Map<String,SchemaObject> objectProperties()Map of all object properties.- Returns:
- all object properties
-
arrayProperties
Map<String,SchemaArray> arrayProperties()Map of all array properties.- Returns:
- all array properties
-
numberProperties
Map<String,SchemaNumber> numberProperties()Map of all number properties.- Returns:
- all number properties
-
integerProperties
Map<String,SchemaInteger> integerProperties()Map of all integer properties.- Returns:
- all integer properties
-
booleanProperties
Map<String,SchemaBoolean> booleanProperties()Map of all boolean properties.- Returns:
- all boolean properties
-
nullProperties
Map<String,SchemaNull> nullProperties()Map of all null properties.- Returns:
- all null properties
-
schemaType
SchemaType schemaType() -
generate
-