Enum Class FlattenMode
- All Implemented Interfaces:
Serializable, Comparable<FlattenMode>, Constable
FlattenMode lists all acceptable modes of the JsonFlattener.- Author:
- Wei-Ming Wu
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFlattens every object except arrays.Flattens every object except arrays which contain only primitive types(strings, numbers, booleans, and null).Conforms to MongoDB dot.notation to update also nested documents.Flattens every object. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlattenModeReturns the enum constant of this class with the specified name.static FlattenMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Flattens every object. -
KEEP_ARRAYS
Flattens every object except arrays. -
MONGODB
Conforms to MongoDB dot.notation to update also nested documents. -
KEEP_PRIMITIVE_ARRAYS
Flattens every object except arrays which contain only primitive types(strings, numbers, booleans, and null).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-