Partilhar via


PolicyType Class

public final class PolicyType
extends ExpandableStringEnum<PolicyType>

The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.

Field Summary

Modifier and Type Field and Description
static final PolicyType BUILT_IN

Static value BuiltIn for PolicyType.

static final PolicyType CUSTOM

Static value Custom for PolicyType.

static final PolicyType NOT_SPECIFIED

Static value NotSpecified for PolicyType.

static final PolicyType STATIC

Static value Static for PolicyType.

Constructor Summary

Constructor Description
PolicyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyType value.

Method Summary

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

Creates or finds a PolicyType from its string representation.

static Collection<PolicyType> values()

Gets known PolicyType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BUILT_IN

public static final PolicyType BUILT_IN

Static value BuiltIn for PolicyType.

CUSTOM

public static final PolicyType CUSTOM

Static value Custom for PolicyType.

NOT_SPECIFIED

public static final PolicyType NOT_SPECIFIED

Static value NotSpecified for PolicyType.

STATIC

public static final PolicyType STATIC

Static value Static for PolicyType.

Constructor Details

PolicyType

@Deprecated
public PolicyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PolicyType value.

Method Details

fromString

public static PolicyType fromString(String name)

Creates or finds a PolicyType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PolicyType.

values

public static Collection values()

Gets known PolicyType values.

Returns:

known PolicyType values.

Applies to