Enum TypeContextFactory

    • Method Detail

      • values

        public static TypeContextFactory[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeContextFactory c : TypeContextFactory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeContextFactory valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • createDefaultTypeContext

        public static TypeContext createDefaultTypeContext​(SchemaGeneratorConfig config)
        Create the default TypeContext with AnnotationInclusion.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

        @Deprecated
        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)
        Create the a TypeContext with the given AnnotationInclusion.
        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 a TypeContext with the given AnnotationInclusion.
        This is equivalent to calling: TypeContextFactory.createTypeContext(new AnnotationConfiguration.StdConfiguration(annotationInclusion))
        Parameters:
        annotationInclusion - indication which annotations to include during type resolution/introspection
        config - configuration to consider
        Returns:
        created TypeContext instance
      • createTypeContext

        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationConfiguration annotationConfig,
                                                    SchemaGeneratorConfig config)
        Create the a TypeContext with the given AnnotationConfiguration.
        Note: when providing an instance of AnnotationConfiguration.StdConfiguration as first parameter, any configured annotation inclusion overrides are applied automatically.
        Parameters:
        annotationConfig - configuration determining which annotations to include during type resolution/introspection
        config - configuration to consider
        Returns:
        created TypeContext instance