Enum ConfigurationSource
java.lang.Object
java.lang.Enum<ConfigurationSource>
org.hibernate.validator.internal.metadata.raw.ConfigurationSource
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationSource>
,java.lang.constant.Constable
The source of constraint meta data.
- Author:
- Gunnar Morling
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe source of configuration are annotation in the source codeThe source of configuration is the programmatic APIThe source of configuration is XML configuration -
Method Summary
Modifier and TypeMethodDescriptionint
Returns this sources priority.static ConfigurationSource
Returns that configuration source from the given two sources, which has the higher priority.static ConfigurationSource
Returns the enum constant of this type with the specified name.static ConfigurationSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ANNOTATION
The source of configuration are annotation in the source code -
XML
The source of configuration is XML configuration -
API
The source of configuration is the programmatic API
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPriority
public int getPriority()Returns this sources priority. Can be used to determine which configuration shall apply in case of conflicting configurations by several providers.- Returns:
- This source's priority.
-
max
Returns that configuration source from the given two sources, which has the higher priority.- Parameters:
a
- A configuration source.b
- Another configuration source.- Returns:
- The source with the higher priority. Will be source
a
if both have the same priority.
-