Level Class

public final class Level
extends ExpandableStringEnum<Level>

Denotes the additional response level.

Field Summary

Modifier and Type Field and Description
static final Level ERROR

Error.

static final Level INFO

Info.

static final Level WARNING

Warning.

Constructor Summary

Constructor Description
Level()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Level value.

Method Summary

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

Creates or finds a Level from its string representation.

static Collection<Level> values()

Gets known Level values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ERROR

public static final Level ERROR

Error.

INFO

public static final Level INFO

Info.

WARNING

public static final Level WARNING

Warning.

Constructor Details

Level

@Deprecated
public Level()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Level value.

Method Details

fromString

public static Level fromString(String name)

Creates or finds a Level from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Level.

values

public static Collection<Level> values()

Gets known Level values.

Returns:

known Level values.

Applies to