Enum Class OpenApiFileType

java.lang.Object
java.lang.Enum<OpenApiFileType>
org.iplass.mtp.webapi.definition.openapi.OpenApiFileType
All Implemented Interfaces:
Serializable, Comparable<OpenApiFileType>, Constable

public enum OpenApiFileType extends Enum<OpenApiFileType>
OpenAPI ファイルタイプ列挙値

OpenAPI 仕様で利用可能なファイルタイプを表します

  • Enum Constant Details

  • Method Details

    • values

      public static OpenApiFileType[] 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

      public static OpenApiFileType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
      表示名を取得します。
      Returns:
      表示名
    • getExtensionList

      public List<String> getExtensionList()
      拡張子リストを取得します。
      Returns:
      拡張子リスト
    • getExtension

      public String getExtension()
      拡張子を取得します。

      先頭の拡張子をデフォルトの拡張子として取得します。

      Returns:
      拡張子
    • fromDisplayName

      public static OpenApiFileType fromDisplayName(String displayName)
      表示名から、対応する OpenApiFileType を取得します。
      Parameters:
      displayName - 表示名
      Returns:
      対応する OpenApiFileType
    • fromExtension

      public static OpenApiFileType fromExtension(String fileName)
      ファイル名の拡張子から、対応する OpenApiFileType を取得します。
      Parameters:
      fileName - ファイル名
      Returns:
      対応する OpenApiFileType
    • getAllExtensions

      public static String[] getAllExtensions()
      全ての拡張子のリストを取得します。
      Returns:
      全ての拡張子のリスト