Package ca.uhn.fhir.rest.api
Enum RequestFormatParamStyleEnum
- java.lang.Object
-
- java.lang.Enum<RequestFormatParamStyleEnum>
-
- ca.uhn.fhir.rest.api.RequestFormatParamStyleEnum
-
- All Implemented Interfaces:
Serializable,Comparable<RequestFormatParamStyleEnum>
public enum RequestFormatParamStyleEnum extends Enum<RequestFormatParamStyleEnum>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestFormatParamStyleEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static RequestFormatParamStyleEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final RequestFormatParamStyleEnum NONE
Do not include a _format parameter on requests
-
SHORT
public static final RequestFormatParamStyleEnum SHORT
"xml" or "json"
-
-
Method Detail
-
values
public static RequestFormatParamStyleEnum[] 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 (RequestFormatParamStyleEnum c : RequestFormatParamStyleEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestFormatParamStyleEnum 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
-
-