RuleSeverity Class

public final class RuleSeverity
extends ExpandableStringEnum<RuleSeverity>

The rule severity.

Field Summary

Modifier and Type Field and Description
static final RuleSeverity HIGH

High severity vulnerability requiring immediate attention.

static final RuleSeverity INFORMATIONAL

Informational finding that does not indicate a vulnerability.

static final RuleSeverity LOW

Low severity vulnerability with minimal risk.

static final RuleSeverity MEDIUM

Medium severity vulnerability that should be addressed.

static final RuleSeverity OBSOLETE

The rule is obsolete and no longer applicable.

Constructor Summary

Constructor Description
RuleSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleSeverity value.

Method Summary

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

Creates or finds a RuleSeverity from its string representation.

static Collection<RuleSeverity> values()

Gets known RuleSeverity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HIGH

public static final RuleSeverity HIGH

High severity vulnerability requiring immediate attention.

INFORMATIONAL

public static final RuleSeverity INFORMATIONAL

Informational finding that does not indicate a vulnerability.

LOW

public static final RuleSeverity LOW

Low severity vulnerability with minimal risk.

MEDIUM

public static final RuleSeverity MEDIUM

Medium severity vulnerability that should be addressed.

OBSOLETE

public static final RuleSeverity OBSOLETE

The rule is obsolete and no longer applicable.

Constructor Details

RuleSeverity

@Deprecated
public RuleSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RuleSeverity value.

Method Details

fromString

public static RuleSeverity fromString(String name)

Creates or finds a RuleSeverity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RuleSeverity.

values

public static Collection<RuleSeverity> values()

Gets known RuleSeverity values.

Returns:

known RuleSeverity values.

Applies to