Enum ResultStatus
- java.lang.Object
-
- java.lang.Enum<ResultStatus>
-
- gov.nist.secauto.decima.core.assessment.result.ResultStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ResultStatus>
public enum ResultStatus extends Enum<ResultStatus>
An enumeration of the possible values for aTestResult, aDerivedRequirementResult, and aBaseRequirementResultindicating the result of a test, a collection of test results for a derived requirement, or a collection of derived requirements for a base requirement respectively.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILThe resulting test or requirement evaluation was unsuccessful and resulted in an error.INFORMATIONALThe resulting test or requirement was evaluated, but produced an informative result that does not indicate success or failure.NOT_APPLICABLEThe requirement is implemented, but was not evaluated because the requirement's pre-condition was not met.NOT_IN_SCOPEThe requirement was determined to not be in the assessment scope; thus, it was not evaluated.NOT_TESTEDThe requirement is in the assessment scope, but it does not have a test implementation.PASSThe resulting test or requirement evaluation was successful.WARNINGThe resulting test or requirement evaluation was unsuccessful and resulted in a warning.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ResultStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_IN_SCOPE
public static final ResultStatus NOT_IN_SCOPE
The requirement was determined to not be in the assessment scope; thus, it was not evaluated.
-
NOT_TESTED
public static final ResultStatus NOT_TESTED
The requirement is in the assessment scope, but it does not have a test implementation.
-
NOT_APPLICABLE
public static final ResultStatus NOT_APPLICABLE
The requirement is implemented, but was not evaluated because the requirement's pre-condition was not met.
-
INFORMATIONAL
public static final ResultStatus INFORMATIONAL
The resulting test or requirement was evaluated, but produced an informative result that does not indicate success or failure.
-
PASS
public static final ResultStatus PASS
The resulting test or requirement evaluation was successful.
-
WARNING
public static final ResultStatus WARNING
The resulting test or requirement evaluation was unsuccessful and resulted in a warning.
-
FAIL
public static final ResultStatus FAIL
The resulting test or requirement evaluation was unsuccessful and resulted in an error.
-
-
Method Detail
-
values
public static ResultStatus[] 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 (ResultStatus c : ResultStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultStatus valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-