public class SchemaGeneratorConfigBuilder extends Object
Constructor and Description |
---|
SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Deprecated.
|
SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
OptionPreset preset)
Deprecated.
|
SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SchemaVersion schemaVersion)
Constructor of an empty configuration builder.
|
SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SchemaVersion schemaVersion,
OptionPreset preset)
Constructor of an empty configuration builder.
|
SchemaGeneratorConfigBuilder(SchemaVersion schemaVersion)
Constructor of an empty configuration builder with a default
ObjectMapper instance. |
SchemaGeneratorConfigBuilder(SchemaVersion schemaVersion,
OptionPreset preset)
Constructor of an empty configuration builder with a default
ObjectMapper instance. |
Modifier and Type | Method and Description |
---|---|
SchemaGeneratorConfig |
build()
Create a schema generator instance from the builder.
|
SchemaGeneratorConfigPart<FieldScope> |
forFields()
Get the part of this configuration builder dedicated to custom attribute look-ups for fields.
|
SchemaGeneratorConfigPart<MethodScope> |
forMethods()
Get the part of this configuration builder dedicated to custom attribute look-ups for methods.
|
SchemaGeneratorGeneralConfigPart |
forTypesInGeneral()
Get the part of this configuration builder dedicated to custom attribute look-ups for types in general, independent of the declaration context.
|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Retrieve the associated object mapper instance.
|
Boolean |
getSetting(Option setting)
Check whether the given setting/option has been set and if yes, whether it is enabled or disabled.
|
SchemaGeneratorConfigBuilder |
with(CustomDefinitionProviderV2 definitionProvider)
Deprecated.
|
SchemaGeneratorConfigBuilder |
with(Module module)
Applying a module to this configuration builder instance.
|
SchemaGeneratorConfigBuilder |
with(Option setting,
Option... moreSettings)
Enable an option for the schema generation.
|
SchemaGeneratorConfigBuilder |
with(TypeAttributeOverride override)
Deprecated.
|
SchemaGeneratorConfigBuilder |
without(Option setting,
Option... moreSettings)
Disable an option for the schema generation.
|
@Deprecated public SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
SchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion)
insteadDraft 7
schema. This is equivalent to calling:new SchemaGeneratorConfigBuilder(objectMapper, SchemaVersion.DRAFT_7, OptionPreset.FULL_DOCUMENTATION)
objectMapper
- supplier for object and array nodes for the JSON structure being generatedSchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
public SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SchemaVersion schemaVersion)
new SchemaGeneratorConfigBuilder(objectMapper, schemaVersion, OptionPreset.FULL_DOCUMENTATION)
objectMapper
- supplier for object and array nodes for the JSON structure being generatedschemaVersion
- designated JSON Schema versionSchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
public SchemaGeneratorConfigBuilder(SchemaVersion schemaVersion)
ObjectMapper
instance. This is equivalent to calling:new SchemaGeneratorConfigBuilder(schemaVersion, OptionPreset.FULL_DOCUMENTATION)
schemaVersion
- designated JSON Schema versionSchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
@Deprecated public SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptionPreset preset)
SchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
insteadDraft 7
schema. This is equivalent to calling:new SchemaGeneratorConfigBuilder(objectMapper, SchemaVersion.DRAFT_7, preset)
objectMapper
- supplier for object and array nodes for the JSON structure being generatedpreset
- default settings for standard Option
valuespublic SchemaGeneratorConfigBuilder(SchemaVersion schemaVersion, OptionPreset preset)
ObjectMapper
instance.schemaVersion
- designated JSON Schema versionpreset
- default settings for standard Option
valuespublic SchemaGeneratorConfigBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SchemaVersion schemaVersion, OptionPreset preset)
objectMapper
- supplier for object and array nodes for the JSON structure being generatedschemaVersion
- designated JSON Schema versionpreset
- default settings for standard Option
valuespublic SchemaGeneratorConfig build()
public SchemaGeneratorGeneralConfigPart forTypesInGeneral()
public SchemaGeneratorConfigPart<FieldScope> forFields()
: holding configurations also applying to methods or types that are not declared as member directly
,
: holding configuration applying to methods
public SchemaGeneratorConfigPart<MethodScope> forMethods()
: holding configurations also applying to fields or types that are not declared as member directly
,
: holding configuration applying to fields
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public Boolean getSetting(Option setting)
setting
- generator option to check forpublic SchemaGeneratorConfigBuilder with(Module module)
module
- configuration module to add/apply@Deprecated public SchemaGeneratorConfigBuilder with(CustomDefinitionProviderV2 definitionProvider)
SchemaGeneratorGeneralConfigPart.withCustomDefinitionProvider(CustomDefinitionProviderV2)
insteaddefinitionProvider
- provider of a custom definition to register, which may return null@Deprecated public SchemaGeneratorConfigBuilder with(TypeAttributeOverride override)
SchemaGeneratorGeneralConfigPart.withTypeAttributeOverride(TypeAttributeOverrideV2)
insteadoverride
- adding/removing attributes on a JSON Schema node – specifically intended for attributes relating to the type in general.public SchemaGeneratorConfigBuilder with(Option setting, Option... moreSettings)
setting
- generator option to enablemoreSettings
- additional generator options to enablepublic SchemaGeneratorConfigBuilder without(Option setting, Option... moreSettings)
setting
- generator option to disablemoreSettings
- additional generator options to disableCopyright © 2020 VicTools. All rights reserved.