Class SimplifiedOptionalModule
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.module.SimplifiedOptionalModule
-
-
Field Summary
Fields Modifier and Type Field Description static String[]DEFAULT_INCLUDED_METHOD_NAMESThe method names to preserve for anOptionalinstance's schema representation: "get", "orElse", "isPresent".
-
Constructor Summary
Constructors Constructor Description SimplifiedOptionalModule(String... includedMethodNames)Constructor: setting the names of methods declared by theOptionalclass to include in its generated object schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToConfigBuilder(SchemaGeneratorConfigBuilder builder)Apply this module to the given configuration builder instance.
-
-
-
Constructor Detail
-
SimplifiedOptionalModule
public SimplifiedOptionalModule(String... includedMethodNames)
Constructor: setting the names of methods declared by theOptionalclass to include in its generated object schema.- Parameters:
includedMethodNames- names of theOptionalclass' methods to include- See Also:
DEFAULT_INCLUDED_METHOD_NAMES
-
-
Method Detail
-
applyToConfigBuilder
public void applyToConfigBuilder(SchemaGeneratorConfigBuilder builder)
Description copied from interface:ModuleApply this module to the given configuration builder instance.- Specified by:
applyToConfigBuilderin interfaceModule- Parameters:
builder- configuration builder instance to which to apply this module
-
-