Enum Class StrSearchPtnEnum

java.lang.Object
java.lang.Enum<StrSearchPtnEnum>
jp.ecuacion.util.jpa.enums.StrSearchPtnEnum
All Implemented Interfaces:
Serializable, Comparable<StrSearchPtnEnum>, Constable

public enum StrSearchPtnEnum extends Enum<StrSearchPtnEnum>
  • Enum Constant Details

  • Method Details

    • values

      public static StrSearchPtnEnum[] 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 StrSearchPtnEnum 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
    • getCode

      public String getCode()
      codeを返す。 codeがnull, 空文字の場合は、Enum生成時にチェックエラーとなるため考慮不要
    • getLabel

      public String getLabel(Locale locale)
      画面で表示するための名称を返す。 この名称は、getはできるがそれをもとにenumを取得することはできない。 localizeされた言語で返す。 明らかに日本語専用のサイトを作成する場合も多いし、その場合にこの仕組みのほうが楽なので。 またどこかで変わるかもしれないけど。
    • getLabel

      public String getLabel()
      defaultのLocaleを使用。