Enum Class OpenApiFileType
- All Implemented Interfaces:
Serializable,Comparable<OpenApiFileType>,Constable
OpenAPI ファイルタイプ列挙値
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 OpenApiFileTypefromDisplayName(String displayName) 表示名から、対応する OpenApiFileType を取得します。static OpenApiFileTypefromExtension(String fileName) ファイル名の拡張子から、対応する OpenApiFileType を取得します。static String[]全ての拡張子のリストを取得します。表示名を取得します。拡張子を取得します。拡張子リストを取得します。static OpenApiFileTypeReturns the enum constant of this class with the specified name.static OpenApiFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JSON
JSON -
YAML
YAML
-
-
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
-
getDisplayName
表示名を取得します。- Returns:
- 表示名
-
getExtensionList
拡張子リストを取得します。- Returns:
- 拡張子リスト
-
getExtension
拡張子を取得します。先頭の拡張子をデフォルトの拡張子として取得します。
- Returns:
- 拡張子
-
fromDisplayName
表示名から、対応する OpenApiFileType を取得します。- Parameters:
displayName- 表示名- Returns:
- 対応する OpenApiFileType
-
fromExtension
ファイル名の拡張子から、対応する OpenApiFileType を取得します。- Parameters:
fileName- ファイル名- Returns:
- 対応する OpenApiFileType
-
getAllExtensions
全ての拡張子のリストを取得します。- Returns:
- 全ての拡張子のリスト
-