Top Description Fields Constructors Methods
org.hibernate.validator.internal.metadata.raw

public final Enum ConfigurationSource

extends Enum<ConfigurationSource>
Class Inheritance

The source of constraint meta data.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
public static final ConfigurationSource
ANNOTATION

The source of configuration are annotation in the source code

public static final ConfigurationSource
API

The source of configuration is the programmatic API

private int
public static final ConfigurationSource
XML

The source of configuration is XML configuration

Constructor Summary

AccessConstructor and Description
private
ConfigurationSource(int priority)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

This source's priority.
getPriority
()

Returns this sources priority.

public static ConfigurationSource

Returns:

The source with the higher priority. Will be source a if both have the same priority.
max
(ConfigurationSource
A configuration source.
a
,
ConfigurationSource
Another configuration source.
b
)

Returns that configuration source from the given two sources, which has the higher priority.

public static ConfigurationSource
public static ConfigurationSource[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANNOTATIONback to summary
public static final ConfigurationSource ANNOTATION

The source of configuration are annotation in the source code

APIback to summary
public static final ConfigurationSource API

The source of configuration is the programmatic API

priorityback to summary
private int priority
XMLback to summary
public static final ConfigurationSource XML

The source of configuration is XML configuration

Constructor Detail

ConfigurationSourceback to summary
private ConfigurationSource(int priority)

Method Detail

getPriorityback to summary
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:int

This source's priority.

maxback to summary
public static ConfigurationSource max(ConfigurationSource a, ConfigurationSource b)

Returns that configuration source from the given two sources, which has the higher priority.

Parameters
a:ConfigurationSource

A configuration source.

b:ConfigurationSource

Another configuration source.

Returns:ConfigurationSource

The source with the higher priority. Will be source a if both have the same priority.

valueOfback to summary
public static ConfigurationSource valueOf(String name)
valuesback to summary
public static ConfigurationSource[] values()