EnabledState Class

public final class EnabledState
extends ExpandableStringEnum<EnabledState>

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.

Field Summary

Modifier and Type Field and Description
static final EnabledState DISABLED

Static value Disabled for EnabledState.

static final EnabledState ENABLED

Static value Enabled for EnabledState.

Constructor Summary

Constructor Description
EnabledState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of EnabledState value.

Method Summary

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

Creates or finds a EnabledState from its string representation.

static Collection<EnabledState> values()

Gets known EnabledState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final EnabledState DISABLED

Static value Disabled for EnabledState.

ENABLED

public static final EnabledState ENABLED

Static value Enabled for EnabledState.

Constructor Details

EnabledState

@Deprecated
public EnabledState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of EnabledState value.

Method Details

fromString

public static EnabledState fromString(String name)

Creates or finds a EnabledState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding EnabledState.

values

public static Collection values()

Gets known EnabledState values.

Returns:

known EnabledState values.

Applies to