Severity Class

public final class Severity
extends ExpandableStringEnum<Severity>

The sub-assessment severity level.

Field Summary

Modifier and Type Field and Description
static final Severity HIGH

Static value High for Severity.

static final Severity LOW

Static value Low for Severity.

static final Severity MEDIUM

Static value Medium for Severity.

Constructor Summary

Constructor Description
Severity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Severity value.

Method Summary

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

Creates or finds a Severity from its string representation.

static Collection<Severity> values()

Gets known Severity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HIGH

public static final Severity HIGH

Static value High for Severity.

LOW

public static final Severity LOW

Static value Low for Severity.

MEDIUM

public static final Severity MEDIUM

Static value Medium for Severity.

Constructor Details

Severity

@Deprecated
public Severity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Severity value.

Method Details

fromString

public static Severity fromString(String name)

Creates or finds a Severity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Severity.

values

public static Collection values()

Gets known Severity values.

Returns:

known Severity values.

Applies to