public static enum JsonPatch.Operation extends 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(String operationName)
Returns the enum constant with the specified name.
|
String |
operationName()
Returns enum constant name as lower case string.
|
static JsonPatch.Operation |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String operationName()
public static JsonPatch.Operation fromOperationName(String operationName)
operationName
- operationName
to convert to the enum constant.operationName
JsonException
- if given operationName
is not recognizedCopyright © 2019 Eclipse Foundation.
Use is subject to license terms.