public enum PolicyType extends java.lang.Enum<PolicyType>
Enum Constant and Description |
---|
DESIGN_TIME |
RUN_TIME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Obtains the String value for the enum object.
|
static PolicyType |
lookup(java.lang.String policyType)
Returns the
PolicyType enum object for a given policy type string value. |
static PolicyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolicyType DESIGN_TIME
public static final PolicyType RUN_TIME
public static PolicyType[] values()
for (PolicyType c : PolicyType.values()) System.out.println(c);
public static PolicyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PolicyType lookup(java.lang.String policyType)
PolicyType
enum object for a given policy type string value.
The given string value should correspond to the allowed list of Policy Types.policyType
- The String value for which the enum object is expectedPolicyType
enum if the given string corresponds
to an allowed value, null
otherwisepublic java.lang.String getName()