Enum Class RequirementLevel
- All Implemented Interfaces:
Serializable,Comparable<RequirementLevel>,Constable
Keywords to indicate requirement levels, as described in RFC 2119.
- Since:
- 0.3.0
- Author:
- Chrimle
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSynonymous withOPTIONAL.Synonymous withSHALL_NOT.Synonymous withSHOULD_NOT.Synonymous withMAY.Synonymous withSHOULD.Synonymous withMUST_NOT.Synonymous withRECOMMENDED.Synonymous withNOT_RECOMMENDED. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static RequirementLevelReturns the enum constant of this class with the specified name.static RequirementLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAY
Synonymous withOPTIONAL.Definition
"This word, or the adjective "
OPTIONAL", mean that an item is truly optional. One vendor may choose to include the item because a particular marketplace requires it or because the vendor feels that it enhances the product while another vendor may omit the same item. An implementation which does not include a particular option MUST be prepared to interoperate with another implementation which does include the option, though perhaps with reduced functionality. In the same vein an implementation which does include a particular option MUST be prepared to interoperate with another implementation which does not include the option (except, of course, for the feature the option provides.)"- Since:
- 0.3.0
- See Also:
-
MUST
-
MUST_NOT
Synonymous withSHALL_NOT.Definition
"This phrase, or the phrase "SHALL NOT", mean that the definition is an absolute prohibition of the specification."
-
NOT_RECOMMENDED
Synonymous withSHOULD_NOT.- Since:
- 0.3.0
- See Also:
-
OPTIONAL
Synonymous withMAY.- Since:
- 0.3.0
- See Also:
-
RECOMMENDED
Synonymous withSHOULD.- Since:
- 0.3.0
- See Also:
-
REQUIRED
-
SHALL
-
SHALL_NOT
Synonymous withMUST_NOT. -
SHOULD
Synonymous withRECOMMENDED.Definition
"This word, or the adjective "
RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course."- Since:
- 0.3.0
- See Also:
-
SHOULD_NOT
Synonymous withNOT_RECOMMENDED.Definition
"This phrase, or the phrase "
NOT_RECOMMENDED" mean that there may exist valid reasons in particular circumstances when the particular behavior is acceptable or even useful, but the full implications should be understood and the case carefully weighed before implementing any behavior described with this label."- Since:
- 0.3.0
- See Also:
-
-
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
-
toString
- Overrides:
toStringin classEnum<RequirementLevel>
-