Enum Class InvalidLifePathReason
java.lang.Object
java.lang.Enum<InvalidLifePathReason>
mekhq.campaign.personnel.advancedCharacterBuilder.InvalidLifePathReason
- All Implemented Interfaces:
Serializable,Comparable<InvalidLifePathReason>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the sentence explaining what the author needs to change.Returns the short name shown to the author.Returns the identifier used to look this reason's strings up.static InvalidLifePathReasonReturns the enum constant of this class with the specified name.static InvalidLifePathReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MIN_YEAR_ABOVE_MAX_YEAR
-
MISSING_CATEGORIES
-
MISSING_LIFE_STAGE
-
MISSING_NAME
-
MISSING_SOURCE
-
NO_FLEXIBLE_PICKS
-
FLEXIBLE_PICKS_EQUAL_ITEMS
-
MATCHING_UUID_REQUIREMENT
-
MATCHING_UUID_EXCLUSION
-
CATEGORY_NONE_NOT_ALONE
-
CONTRADICTORY_REQUIREMENT_EXCLUSION
-
TOO_MANY_FLEXIBLE_PICKS
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getLookupName
Returns the identifier used to look this reason's strings up.- Returns:
- the lookup name
- Since:
- 0.50.11
-
getDisplayName
Returns the short name shown to the author.- Returns:
- the display name
- Since:
- 0.50.11
-
getDescription
Returns the sentence explaining what the author needs to change.- Returns:
- the description
- Since:
- 0.50.11
-