Package com.yahoo.config.application.api
Enum ValidationId
- java.lang.Object
-
- java.lang.Enum<ValidationId>
-
- com.yahoo.config.application.api.ValidationId
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ValidationId>
public enum ValidationId extends java.lang.Enum<ValidationId>
Ids of validations that can be overridden- Author:
- bratseth
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ValidationId>
from(java.lang.String id)
Returns the validation id from this string.java.lang.String
toString()
java.lang.String
value()
static ValidationId
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ValidationId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
indexingChange
public static final ValidationId indexingChange
-
indexModeChange
public static final ValidationId indexModeChange
-
fieldTypeChange
public static final ValidationId fieldTypeChange
-
clusterSizeReduction
public static final ValidationId clusterSizeReduction
-
tensorTypeChange
public static final ValidationId tensorTypeChange
-
resourcesReduction
public static final ValidationId resourcesReduction
-
contentTypeRemoval
public static final ValidationId contentTypeRemoval
-
contentClusterRemoval
public static final ValidationId contentClusterRemoval
-
deploymentRemoval
public static final ValidationId deploymentRemoval
-
globalDocumentChange
public static final ValidationId globalDocumentChange
-
configModelVersionMismatch
public static final ValidationId configModelVersionMismatch
-
skipOldConfigModels
public static final ValidationId skipOldConfigModels
-
accessControl
public static final ValidationId accessControl
-
globalEndpointChange
public static final ValidationId globalEndpointChange
-
-
Method Detail
-
values
public static ValidationId[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValidationId c : ValidationId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationId valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ValidationId>
-
from
public static java.util.Optional<ValidationId> from(java.lang.String id)
Returns the validation id from this string. Use this instead of valueOf to match string on the (canonical) dash-separated form.- Returns:
- the matching validation id or empty if none
-
-