Enum SynchronizableValue.Mode
- java.lang.Object
-
- java.lang.Enum<SynchronizableValue.Mode>
-
- org.ametys.plugins.repository.data.holder.values.SynchronizableValue.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<SynchronizableValue.Mode>
- Enclosing class:
- SynchronizableValue
public static enum SynchronizableValue.Mode extends Enum<SynchronizableValue.Mode>
The value write mode.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SynchronizableValue.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SynchronizableValue.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final SynchronizableValue.Mode REPLACE
The value will replace existing values
-
APPEND
public static final SynchronizableValue.Mode APPEND
The value will be appended to existing values
-
REMOVE
public static final SynchronizableValue.Mode REMOVE
The value will be removed if found among existing values
-
-
Method Detail
-
values
public static SynchronizableValue.Mode[] 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 (SynchronizableValue.Mode c : SynchronizableValue.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SynchronizableValue.Mode 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
-
-