RuleStatus Class

public final class RuleStatus
extends ExpandableStringEnum<RuleStatus>

The rule result status.

Field Summary

Modifier and Type Field and Description
static final RuleStatus FINDING

A vulnerability was found for this rule.

static final RuleStatus INTERNAL_ERROR

An internal error occurred while evaluating this rule.

static final RuleStatus NON_FINDING

No vulnerability was found for this rule.

static final RuleStatus NOT_APPLICABLE

The rule is not applicable to the assessed resource.

Constructor Summary

Constructor Description
RuleStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleStatus value.

Method Summary

Modifier and Type Method and Description
static RuleStatus fromString(String name)

Creates or finds a RuleStatus from its string representation.

static Collection<RuleStatus> values()

Gets known RuleStatus values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FINDING

public static final RuleStatus FINDING

A vulnerability was found for this rule.

INTERNAL_ERROR

public static final RuleStatus INTERNAL_ERROR

An internal error occurred while evaluating this rule.

NON_FINDING

public static final RuleStatus NON_FINDING

No vulnerability was found for this rule.

NOT_APPLICABLE

public static final RuleStatus NOT_APPLICABLE

The rule is not applicable to the assessed resource.

Constructor Details

RuleStatus

@Deprecated
public RuleStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleStatus value.

Method Details

fromString

public static RuleStatus fromString(String name)

Creates or finds a RuleStatus from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RuleStatus.

values

public static Collection<RuleStatus> values()

Gets known RuleStatus values.

Returns:

known RuleStatus values.

Applies to