public static enum JsonPatch.Operation extends java.lang.Enum<JsonPatch.Operation>
Enum Constant and Description |
---|
ADD
"add" operation.
|
COPY
"copy" operation.
|
MOVE
"move" operation.
|
REMOVE
"remove" operation.
|
REPLACE
"remove" operation.
|
TEST
"test" operation.
|
Modifier and Type | Method and Description |
---|---|
static JsonPatch.Operation |
fromOperationName(java.lang.String operationName)
Returns the enum constant with the specified name.
|
java.lang.String |
operationName()
Returns enum constant name as lower case string.
|
static JsonPatch.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonPatch.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonPatch.Operation ADD
public static final JsonPatch.Operation REMOVE
public static final JsonPatch.Operation REPLACE
public static final JsonPatch.Operation MOVE
public static final JsonPatch.Operation COPY
public static final JsonPatch.Operation TEST
public static JsonPatch.Operation[] values()
for (JsonPatch.Operation c : JsonPatch.Operation.values()) System.out.println(c);
public static JsonPatch.Operation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String operationName()
public static JsonPatch.Operation fromOperationName(java.lang.String operationName)
operationName
- operationName
to convert to the enum constant.operationName
JsonException
- if given operationName
is not recognized