Package org.apache.synapse.util
Enum JSONMergeUtils.ConflictStrategy
- java.lang.Object
-
- java.lang.Enum<JSONMergeUtils.ConflictStrategy>
-
- org.apache.synapse.util.JSONMergeUtils.ConflictStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<JSONMergeUtils.ConflictStrategy>
- Enclosing class:
- JSONMergeUtils
public static enum JSONMergeUtils.ConflictStrategy extends Enum<JSONMergeUtils.ConflictStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MERGE_INTO_ARRAY
PREFER_FIRST_OBJECT
PREFER_NON_NULL
PREFER_SECOND_OBJECT
THROW_EXCEPTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSONMergeUtils.ConflictStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static JSONMergeUtils.ConflictStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW_EXCEPTION
public static final JSONMergeUtils.ConflictStrategy THROW_EXCEPTION
-
PREFER_FIRST_OBJECT
public static final JSONMergeUtils.ConflictStrategy PREFER_FIRST_OBJECT
-
PREFER_SECOND_OBJECT
public static final JSONMergeUtils.ConflictStrategy PREFER_SECOND_OBJECT
-
MERGE_INTO_ARRAY
public static final JSONMergeUtils.ConflictStrategy MERGE_INTO_ARRAY
-
PREFER_NON_NULL
public static final JSONMergeUtils.ConflictStrategy PREFER_NON_NULL
-
-
Method Detail
-
values
public static JSONMergeUtils.ConflictStrategy[] 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 (JSONMergeUtils.ConflictStrategy c : JSONMergeUtils.ConflictStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSONMergeUtils.ConflictStrategy 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
-
-