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
ConstructorsModifierConstructorDescriptionprotectedSchemaImpl(Schema.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerate()Generate the String representation of the schema.Generate the String representation of the schema without schema keywords.inthashCode()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:SchemaGenerate the String representation of the schema. -
generateNoKeywords
Description copied from interface:SchemaGenerate the String representation of the schema without schema keywords. Keywords like$schemaor$idwill not be included.- Specified by:
generateNoKeywordsin interfaceSchema- Returns:
- Json schema in a String format
-
id
Description copied from interface:SchemaThe base URI for resolving relative references. -
root
Description copied from interface:SchemaRoot schema. -
rootObject
Description copied from interface:SchemaRoot of the schema should be validated as an object.- Specified by:
rootObjectin interfaceSchema- Returns:
- object root schema
-
rootArray
Description copied from interface:SchemaRoot of the schema should be validated as an array. -
rootNumber
Description copied from interface:SchemaRoot of the schema should be validated as a number.- Specified by:
rootNumberin interfaceSchema- Returns:
- number root schema
-
rootInteger
Description copied from interface:SchemaRoot of the schema should be validated as an integer.- Specified by:
rootIntegerin interfaceSchema- Returns:
- integer root schema
-
rootString
Description copied from interface:SchemaRoot of the schema should be validated as a string.- Specified by:
rootStringin interfaceSchema- Returns:
- string root schema
-
rootBoolean
Description copied from interface:SchemaRoot of the schema should be validated as a boolean.- Specified by:
rootBooleanin interfaceSchema- Returns:
- boolean root schema
-
rootNull
Description copied from interface:SchemaRoot of the schema should be validated as a null. -
toString
-
equals
-
hashCode
public int hashCode()
-