Class OptionPreset
java.lang.Object
com.github.victools.jsonschema.generator.OptionPreset
Selection of
Option entries to be enabled by default, which can be overridden via
SchemaGeneratorConfigBuilder.with(Option, Option...)/SchemaGeneratorConfigBuilder.without(Option, Option...).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OptionPresetPreset: including private/package/protected/public fields and all public methods.static final OptionPresetPreset: including public fields and all public methods.static final OptionPresetPreset: including private/package/protected/public fields and no methods. -
Constructor Summary
ConstructorsConstructorDescriptionOptionPreset(Option... enabledByDefault) Constructor: defining the fixed list of options to be enabled by default. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisOptionEnabledByDefault(Option setting) Indicate whether the given option should be enabled, if it was not specifically included/excluded in theSchemaGeneratorConfigBuilder.
-
Field Details
-
FULL_DOCUMENTATION
Preset: including private/package/protected/public fields and all public methods. -
PLAIN_JSON
Preset: including private/package/protected/public fields and no methods. -
JAVA_OBJECT
Preset: including public fields and all public methods.
-
-
Constructor Details
-
OptionPreset
Constructor: defining the fixed list of options to be enabled by default.- Parameters:
enabledByDefault- options in this preset
-
-
Method Details
-
isOptionEnabledByDefault
Indicate whether the given option should be enabled, if it was not specifically included/excluded in theSchemaGeneratorConfigBuilder.- Parameters:
setting- option to check- Returns:
- whether the given option is enabled by defaul
- See Also:
-