Class TypeContextFactory
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.TypeContextFactory
-
public class TypeContextFactory extends Object
Factory class for creatingTypeContext
instances.
-
-
Constructor Summary
Constructors Constructor Description TypeContextFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeContext
createDefaultTypeContext()
Create the defaultTypeContext
withAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED
.static TypeContext
createDefaultTypeContext(SchemaGeneratorConfig config)
Create the defaultTypeContext
withAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED
.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)
static TypeContext
createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig)
Create the aTypeContext
with the givenAnnotationConfiguration
.static TypeContext
createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig, SchemaGeneratorConfig config)
Create the aTypeContext
with the givenAnnotationConfiguration
.static TypeContext
createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)
Create the aTypeContext
with the givenAnnotationInclusion
.static TypeContext
createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion, SchemaGeneratorConfig config)
Create the aTypeContext
with the givenAnnotationInclusion
.
-
-
-
Method Detail
-
createDefaultTypeContext
public static TypeContext createDefaultTypeContext()
Create the defaultTypeContext
withAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED
.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)
- Returns:
- created
TypeContext
instance
-
createDefaultTypeContext
public static TypeContext createDefaultTypeContext(SchemaGeneratorConfig config)
Create the defaultTypeContext
withAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED
.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)
- Parameters:
config
- configuration to consider- Returns:
- created
TypeContext
instance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)
Create the aTypeContext
with the givenAnnotationInclusion
.
This is equivalent to calling:TypeContextFactory.createTypeContext(new AnnotationConfiguration.StdConfiguration(annotationInclusion))
- Parameters:
annotationInclusion
- indication which annotations to include during type resolution/introspection- Returns:
- created
TypeContext
instance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion, SchemaGeneratorConfig config)
Create the aTypeContext
with the givenAnnotationInclusion
.
This is equivalent to calling:TypeContextFactory.createTypeContext(new AnnotationConfiguration.StdConfiguration(annotationInclusion))
- Parameters:
annotationInclusion
- indication which annotations to include during type resolution/introspectionconfig
- configuration to consider- Returns:
- created
TypeContext
instance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig)
Create the aTypeContext
with the givenAnnotationConfiguration
.- Parameters:
annotationConfig
- configuration determining which annotations to include during type resolution/introspection- Returns:
- created
TypeContext
instance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig, SchemaGeneratorConfig config)
Create the aTypeContext
with the givenAnnotationConfiguration
.- Parameters:
annotationConfig
- configuration determining which annotations to include during type resolution/introspectionconfig
- configuration to consider- Returns:
- created
TypeContext
instance
-
-