Package io.openapitools.swagger
Enum OutputFormat
- java.lang.Object
-
- java.lang.Enum<OutputFormat>
-
- io.openapitools.swagger.OutputFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<OutputFormat>
,java.lang.constant.Constable
public enum OutputFormat extends Enum<OutputFormat>
Supported output formats.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static OutputFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static OutputFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
write(io.swagger.v3.oas.models.OpenAPI swagger, File file, boolean prettyPrint)
-
-
-
Enum Constant Detail
-
JSON
public static final OutputFormat JSON
-
YAML
public static final OutputFormat YAML
-
-
Method Detail
-
values
public static OutputFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputFormat 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 nameNullPointerException
- if the argument is null
-
write
public void write(io.swagger.v3.oas.models.OpenAPI swagger, File file, boolean prettyPrint) throws IOException
- Throws:
IOException
-
-