Enum Class OpenApiVersion
- All Implemented Interfaces:
Serializable
,Comparable<OpenApiVersion>
,Constable
OpenAPI バージョン列挙値
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiVersion
fromSeriesVersion
(String seriesVersion) シリーズバージョンから OpenApiVersion を取得します。デフォルトバージョンを取得します。シリーズバージョンを取得します。static OpenApiVersion
Returns the enum constant of this class with the specified name.static OpenApiVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V30
version 3.0 -
V31
version 3.1
-
-
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
-
getSeriesVersion
シリーズバージョンを取得します。- Returns:
- シリーズバージョン
-
getDefaultVersion
デフォルトバージョンを取得します。デフォルトバージョンは、OpenAPI仕様の openapi に設定するデフォルトのバージョンを表します。
- Returns:
- デフォルトバージョン
-
fromSeriesVersion
シリーズバージョンから OpenApiVersion を取得します。- Parameters:
seriesVersion
- シリーズバージョン文字列- Returns:
- 対応する OpenApiVersion
-