Enum Class Attribute

java.lang.Object
java.lang.Enum<Attribute>
de.kaiserpfalzedv.rpg.torg.model.actors.Attribute
All Implemented Interfaces:
MapperEnum<Attribute>, Serializable, Comparable<Attribute>, Constable

public enum Attribute extends Enum<Attribute> implements MapperEnum<Attribute>
Attribute -- The attributes defined in Torg.
Since:
0.3.0 2021-05-23
Author:
klenkes74 <rlichti@kaiserpfalz-edv.de>
  • Enum Constant Details

    • CHARISMA

      public static final Attribute CHARISMA
    • DEXTERITY

      public static final Attribute DEXTERITY
    • MIND

      public static final Attribute MIND
    • SPIRIT

      public static final Attribute SPIRIT
    • STRENGTH

      public static final Attribute STRENGTH
  • Method Details

    • values

      public static Attribute[] 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 Attribute 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
    • mapFromFoundry

      public Optional<Attribute> mapFromFoundry(@NotNull @NotNull String name)
      Specified by:
      mapFromFoundry in interface MapperEnum<Attribute>
    • mapFromRoll20

      public Optional<Attribute> mapFromRoll20(@NotNull @NotNull String name)
      Specified by:
      mapFromRoll20 in interface MapperEnum<Attribute>
    • allAttributes

      public List<Attribute> allAttributes()
    • getShortName

      public String getShortName()
    • getName

      public String getName()
    • getRoll20

      public String getRoll20()
      Specified by:
      getRoll20 in interface MapperEnum<Attribute>
    • getFoundry

      public String getFoundry()
      Specified by:
      getFoundry in interface MapperEnum<Attribute>