Class TypeContextFactory
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.TypeContextFactory
-
public class TypeContextFactory extends Object
Factory class for creatingTypeContextinstances.
-
-
Constructor Summary
Constructors Constructor Description TypeContextFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeContextcreateDefaultTypeContext()Create the defaultTypeContextwithAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.static TypeContextcreateDefaultTypeContext(SchemaGeneratorConfig config)Create the defaultTypeContextwithAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig)Create the aTypeContextwith the givenAnnotationConfiguration.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig, SchemaGeneratorConfig config)Create the aTypeContextwith the givenAnnotationConfiguration.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)Create the aTypeContextwith the givenAnnotationInclusion.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion, SchemaGeneratorConfig config)Create the aTypeContextwith the givenAnnotationInclusion.
-
-
-
Method Detail
-
createDefaultTypeContext
public static TypeContext createDefaultTypeContext()
Create the defaultTypeContextwithAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)- Returns:
- created
TypeContextinstance
-
createDefaultTypeContext
public static TypeContext createDefaultTypeContext(SchemaGeneratorConfig config)
Create the defaultTypeContextwithAnnotationInclusion.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
TypeContextinstance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)
Create the aTypeContextwith 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
TypeContextinstance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion, SchemaGeneratorConfig config)
Create the aTypeContextwith 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
TypeContextinstance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig)
Create the aTypeContextwith the givenAnnotationConfiguration.- Parameters:
annotationConfig- configuration determining which annotations to include during type resolution/introspection- Returns:
- created
TypeContextinstance
-
createTypeContext
public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig, SchemaGeneratorConfig config)
Create the aTypeContextwith the givenAnnotationConfiguration.- Parameters:
annotationConfig- configuration determining which annotations to include during type resolution/introspectionconfig- configuration to consider- Returns:
- created
TypeContextinstance
-
-