Enum DuplicatesDaemonLimitationMode
- java.lang.Object
-
- java.lang.Enum<DuplicatesDaemonLimitationMode>
-
- fr.paris.lutece.plugins.identitystore.modules.quality.business.DuplicatesDaemonLimitationMode
-
- All Implemented Interfaces:
Serializable,Comparable<DuplicatesDaemonLimitationMode>
public enum DuplicatesDaemonLimitationMode extends Enum<DuplicatesDaemonLimitationMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GLOBALThe limitation of the rule is applied over every execution of the daemon.INCREMENTALThe limitation of the rule is applied for a single execution of the daemon.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DuplicatesDaemonLimitationModegetMode(String key)Returns the mode associated to the given key.static DuplicatesDaemonLimitationModevalueOf(String name)Returns the enum constant of this type with the specified name.static DuplicatesDaemonLimitationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL
public static final DuplicatesDaemonLimitationMode GLOBAL
The limitation of the rule is applied over every execution of the daemon.
-
INCREMENTAL
public static final DuplicatesDaemonLimitationMode INCREMENTAL
The limitation of the rule is applied for a single execution of the daemon.
-
-
Method Detail
-
values
public static DuplicatesDaemonLimitationMode[] 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 (DuplicatesDaemonLimitationMode c : DuplicatesDaemonLimitationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DuplicatesDaemonLimitationMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getMode
public static DuplicatesDaemonLimitationMode getMode(String key)
Returns the mode associated to the given key. If there is no value matching the key, the default mode is GLOBAL.- Parameters:
key- the key to be found- Returns:
- the
DuplicatesDaemonLimitationModematching the given key
-
-