Package com.ibm.fhir.path.patch
Enum FHIRPathPatchType
- java.lang.Object
-
- java.lang.Enum<FHIRPathPatchType>
-
- com.ibm.fhir.path.patch.FHIRPathPatchType
-
- All Implemented Interfaces:
Serializable,Comparable<FHIRPathPatchType>
public enum FHIRPathPatchType extends Enum<FHIRPathPatchType>
The list of allowed FHIRPath Patch operation types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDThe content will be appended to the element identified in the path, using the name specified.DELETEDelete the content at the specified path (if found)INSERTThe content will be inserted into the nominated list at the index specified (0 based).MOVEMove an element within a single listREPLACEReplace the content at the specified path
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FHIRPathPatchTypefrom(String value)Stringvalue()static FHIRPathPatchTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FHIRPathPatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final FHIRPathPatchType ADD
The content will be appended to the element identified in the path, using the name specified. Add can used for non-repeating elements as long as they do not already exist.
-
INSERT
public static final FHIRPathPatchType INSERT
The content will be inserted into the nominated list at the index specified (0 based). Note: add is easier than insert at the end of the list.
-
DELETE
public static final FHIRPathPatchType DELETE
Delete the content at the specified path (if found)
-
REPLACE
public static final FHIRPathPatchType REPLACE
Replace the content at the specified path
-
MOVE
public static final FHIRPathPatchType MOVE
Move an element within a single list
-
-
Method Detail
-
values
public static FHIRPathPatchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FHIRPathPatchType c : FHIRPathPatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FHIRPathPatchType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
-
from
public static FHIRPathPatchType from(String value)
-
-