Serializable
, Comparable<OutputFormat>
public enum OutputFormat extends Enum<OutputFormat>
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) |
public static final OutputFormat JSON
public static final OutputFormat YAML
public static OutputFormat[] values()
for (OutputFormat c : OutputFormat.values()) System.out.println(c);
public static OutputFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void write(io.swagger.v3.oas.models.OpenAPI swagger, File file, boolean prettyPrint) throws IOException
IOException
Copyright © 2019. All rights reserved.