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>
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.Schema
Schema.Builder, Schema.BuilderBase<BUILDER extends Schema.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Schema> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaImpl
(Schema.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
generate()
Generate the String representation of the schema.Generate the String representation of the schema without schema keywords.int
hashCode()
id()
The base URI for resolving relative references.root()
Root schema.Root of the schema should be validated as an array.Root of the schema should be validated as a boolean.Root of the schema should be validated as an integer.rootNull()
Root of the schema should be validated as a null.Root of the schema should be validated as a number.Root of the schema should be validated as an object.Root of the schema should be validated as a string.toString()
-
Constructor Details
-
SchemaImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
generate
Description copied from interface:Schema
Generate the String representation of the schema. -
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 interfaceSchema
- Returns:
- Json schema in a String format
-
id
Description copied from interface:Schema
The base URI for resolving relative references. -
root
Description copied from interface:Schema
Root schema. -
rootObject
Description copied from interface:Schema
Root of the schema should be validated as an object.- Specified by:
rootObject
in interfaceSchema
- Returns:
- object root schema
-
rootArray
Description copied from interface:Schema
Root of the schema should be validated as an array. -
rootNumber
Description copied from interface:Schema
Root of the schema should be validated as a number.- Specified by:
rootNumber
in interfaceSchema
- Returns:
- number root schema
-
rootInteger
Description copied from interface:Schema
Root of the schema should be validated as an integer.- Specified by:
rootInteger
in interfaceSchema
- Returns:
- integer root schema
-
rootString
Description copied from interface:Schema
Root of the schema should be validated as a string.- Specified by:
rootString
in interfaceSchema
- Returns:
- string root schema
-
rootBoolean
Description copied from interface:Schema
Root of the schema should be validated as a boolean.- Specified by:
rootBoolean
in interfaceSchema
- Returns:
- boolean root schema
-
rootNull
Description copied from interface:Schema
Root of the schema should be validated as a null. -
toString
-
equals
-
hashCode
public int hashCode()
-