Enum Class BaseI18n

java.lang.Object
java.lang.Enum<BaseI18n>
one.tranic.t.i18n.loader.BaseI18n
All Implemented Interfaces:
Serializable, Comparable<BaseI18n>, Constable, I18n

public enum BaseI18n extends Enum<BaseI18n> implements I18n
  • Enum Constant Details

    • PROPERTIES

      public static final BaseI18n PROPERTIES
      Example Properties:
      
       goldpiglin.test1 = Goldpiglin test
       goldpiglin.boost = boost test
       goldpiglin.boost.xyz = Goldpiglin xyzzz
       
    • XML

      public static final BaseI18n XML
      Example xml:
      
       <messages>
            <!-- Using ID attribute method -->
            <message id="goldpiglin.test1">Goldpiglin test</message>
      
            <!-- Using node hierarchy method -->
            <goldpiglin>
                <boost>boost test</boost>
                <boost>
                    <xyz>Goldpiglin xyzzz</xyz>
                </boost>
            </goldpiglin>
       </messages>
       
  • Method Details

    • values

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