public enum SharedCriterionErrorReason extends Enum<SharedCriterionErrorReason>
Java class for SharedCriterionError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="SharedCriterionError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EXCEEDS_CRITERIA_LIMIT"/>
<enumeration value="INCORRECT_CRITERION_TYPE"/>
<enumeration value="CANNOT_TARGET_AND_EXCLUDE"/>
<enumeration value="NEGATIVE_CRITERION_REQUIRED"/>
<enumeration value="CONCRETE_TYPE_REQUIRED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_TARGET_AND_EXCLUDE
Cannot add the same crietrion as positive and negative in the same shared set.
|
CONCRETE_TYPE_REQUIRED
Concrete type of criterion (e.g., keyword and placement) is required for ADD operations.
|
EXCEEDS_CRITERIA_LIMIT |
INCORRECT_CRITERION_TYPE |
NEGATIVE_CRITERION_REQUIRED
Negative shared set type requires a negative shared set criterion.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static SharedCriterionErrorReason |
fromValue(String v) |
String |
value() |
static SharedCriterionErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharedCriterionErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SharedCriterionErrorReason EXCEEDS_CRITERIA_LIMIT
public static final SharedCriterionErrorReason INCORRECT_CRITERION_TYPE
public static final SharedCriterionErrorReason CANNOT_TARGET_AND_EXCLUDE
public static final SharedCriterionErrorReason NEGATIVE_CRITERION_REQUIRED
public static final SharedCriterionErrorReason CONCRETE_TYPE_REQUIRED
public static final SharedCriterionErrorReason UNKNOWN
public static SharedCriterionErrorReason[] values()
for (SharedCriterionErrorReason c : SharedCriterionErrorReason.values()) System.out.println(c);
public static SharedCriterionErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static SharedCriterionErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.