Enum Class TypeContextFactory
- All Implemented Interfaces:
Serializable,Comparable<TypeContextFactory>,Constable
Factory class for creating
TypeContext instances.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeContextDeprecated.static TypeContextCreate 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) Deprecated.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig, SchemaGeneratorConfig config) Create the aTypeContextwith the givenAnnotationConfiguration.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion) Deprecated.static TypeContextcreateTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion, SchemaGeneratorConfig config) Create the aTypeContextwith the givenAnnotationInclusion.static TypeContextFactoryReturns the enum constant of this class with the specified name.static TypeContextFactory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
createDefaultTypeContext
Deprecated.usecreateDefaultTypeContext(SchemaGeneratorConfig)insteadCreate the defaultTypeContextwithAnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.
This is equivalent to calling:TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)- Returns:
- created
TypeContextinstance
-
createDefaultTypeContext
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
@Deprecated public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationInclusion annotationInclusion) Deprecated.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
@Deprecated public static TypeContext createTypeContext(com.fasterxml.classmate.AnnotationConfiguration annotationConfig) Deprecated.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.
Note: when providing an instance ofAnnotationConfiguration.StdConfigurationas first parameter, any configured annotation inclusion overrides are applied automatically.- Parameters:
annotationConfig- configuration determining which annotations to include during type resolution/introspectionconfig- configuration to consider- Returns:
- created
TypeContextinstance
-
createDefaultTypeContext(SchemaGeneratorConfig)instead