public enum ContentTypeEnum extends Enum<ContentTypeEnum>
| Enum Constant and Description |
|---|
JSON
Display: json
Code Value: json JSON content-type corresponding to the application/json+fhir mime-type. |
XML
Display: xml
Code Value: xml XML content-type corresponding to the application/xml+fhir mime-type. |
| Modifier and Type | Field and Description |
|---|---|
static IValueSetEnumBinder<ContentTypeEnum> |
VALUESET_BINDER
Converts codes to their respective enumerated values
|
static String |
VALUESET_IDENTIFIER
Identifier for this Value Set:
|
static String |
VALUESET_NAME
Name for this Value Set:
ContentType
|
| Modifier and Type | Method and Description |
|---|---|
static ContentTypeEnum |
forCode(String theCode)
Returns the enumerated value associated with this code
|
String |
getCode()
Returns the code associated with this enumerated value
|
String |
getSystem()
Returns the code system associated with this enumerated value
|
static ContentTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentTypeEnum XML
public static final ContentTypeEnum JSON
public static final String VALUESET_IDENTIFIER
public static final String VALUESET_NAME
public static final IValueSetEnumBinder<ContentTypeEnum> VALUESET_BINDER
public static ContentTypeEnum[] values()
for (ContentTypeEnum c : ContentTypeEnum.values()) System.out.println(c);
public static ContentTypeEnum 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 ContentTypeEnum forCode(String theCode)
Copyright © 2014–2016 University Health Network. All rights reserved.