public enum PatchOp extends Enum<PatchOp>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
ADD
Depending on the target location reference, completes one of these functions: The target location is an array index.
|
COPY
Copies the value at a specified location to the target location.
|
MOVE
Removes the value at a specified location and adds it to the target location.
|
REMOVE
Removes the value at the target location.
|
REPLACE
Replaces the value at the target location with a new value.
|
TEST
Tests that a value at the target location is equal to a specified value.
|
| Modifier and Type | Method and Description |
|---|---|
static PatchOp |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static PatchOp |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<PatchOp> toConvert)
Convert list of PatchOp values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static PatchOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PatchOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatchOp ADD
public static final PatchOp REMOVE
public static final PatchOp REPLACE
public static final PatchOp MOVE
public static final PatchOp COPY
public static final PatchOp TEST
public static final PatchOp _UNKNOWN
public static PatchOp[] values()
for (PatchOp c : PatchOp.values()) System.out.println(c);
public static PatchOp 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 static PatchOp constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static PatchOp fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
Copyright © 2025. All rights reserved.