Enum Class InvalidLifePathReason

java.lang.Object
java.lang.Enum<InvalidLifePathReason>
mekhq.campaign.personnel.advancedCharacterBuilder.InvalidLifePathReason
All Implemented Interfaces:
Serializable, Comparable<InvalidLifePathReason>, Constable

public enum InvalidLifePathReason extends Enum<InvalidLifePathReason>
Why a Life Path cannot be used.

Each value names a mistake an author can make that the record's own constructor does not reject, and carries the display name and description shown to the author. LifePathValidator produces them.

Since:
0.50.11
  • Enum Constant Details

  • Method Details

    • values

      public static InvalidLifePathReason[] 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 InvalidLifePathReason 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
    • getLookupName

      public String getLookupName()
      Returns the identifier used to look this reason's strings up.
      Returns:
      the lookup name
      Since:
      0.50.11
    • getDisplayName

      public String getDisplayName()
      Returns the short name shown to the author.
      Returns:
      the display name
      Since:
      0.50.11
    • getDescription

      public String getDescription()
      Returns the sentence explaining what the author needs to change.
      Returns:
      the description
      Since:
      0.50.11