Package com.piketec.tpt.api
Enum Requirement.RequirementType
- java.lang.Object
-
- java.lang.Enum<Requirement.RequirementType>
-
- com.piketec.tpt.api.Requirement.RequirementType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Requirement.RequirementType>
- Enclosing interface:
- Requirement
public static enum Requirement.RequirementType extends java.lang.Enum<Requirement.RequirementType>
We distinguish between three types of requirements. Two of them are only informative.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEADING
A requirement used as a headingINFORMATION
A requirement used as informative text.REQUIREMENT
A real requirement.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
static Requirement.RequirementType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Requirement.RequirementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIREMENT
public static final Requirement.RequirementType REQUIREMENT
A real requirement.
-
HEADING
public static final Requirement.RequirementType HEADING
A requirement used as a heading
-
INFORMATION
public static final Requirement.RequirementType INFORMATION
A requirement used as informative text.
-
-
Method Detail
-
values
public static Requirement.RequirementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Requirement.RequirementType c : Requirement.RequirementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Requirement.RequirementType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDisplayName
public java.lang.String getDisplayName()
-
-