Enum Class JsonNode.OverwriteMode
java.lang.Object
java.lang.Enum<JsonNode.OverwriteMode>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonNode.OverwriteMode
- All Implemented Interfaces:
Serializable
,Comparable<JsonNode.OverwriteMode>
,java.lang.constant.Constable
- Enclosing class:
- JsonNode
Configuration setting used with
JsonNode.withObject(JsonPointer)
method overrides, to indicate which overwrites are acceptable if the
path pointer indicates has incompatible nodes (for example, instead
of Object node a Null node is encountered).
Overwrite means that the existing value is replaced with compatible type,
potentially losing existing values or even sub-trees.
Default value if NULLS
which only allows Null-value nodes
to be replaced but no other types.
- Since:
- 2.14
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMode in which all incompatible node types may be replaced, including Array and Object nodes where necessary.Mode in which no values may be overwritten, not evenNullNode
s; only compatible paths may be traversed.Mode in which explicitNullNode
s may be replaced but no other node types.Mode in which all scalar value nodes may be replaced, but not Array or Object nodes. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonNode.OverwriteMode
Returns the enum constant of this class with the specified name.static JsonNode.OverwriteMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Mode in which no values may be overwritten, not evenNullNode
s; only compatible paths may be traversed. -
NULLS
Mode in which explicitNullNode
s may be replaced but no other node types. -
SCALARS
Mode in which all scalar value nodes may be replaced, but not Array or Object nodes. -
ALL
Mode in which all incompatible node types may be replaced, including Array and Object nodes where necessary.
-
-
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
-