public class ContentTypeEnumFactory extends Object implements EnumFactory<ContentType>
| Constructor and Description |
|---|
ContentTypeEnumFactory() |
| Modifier and Type | Method and Description |
|---|---|
ContentType |
fromCode(String codeString)
Read an enumeration value from the string that represents it on the XML or JSON
|
String |
toCode(ContentType code)
Get the XML/JSON representation for an enumerated value
|
String |
toSystem(ContentType code)
Get the system URI for an enumerated value
|
public ContentTypeEnumFactory()
public ContentType fromCode(String codeString) throws IllegalArgumentException
EnumFactoryfromCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<ContentType>fromCode in interface EnumFactory<ContentType>codeString - the value found in the XML or JSONIllegalArgumentExceptionpublic String toCode(ContentType code)
EnumFactorytoCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<ContentType>toCode in interface EnumFactory<ContentType>code - - the enumeration valuepublic String toSystem(ContentType code)
EnumFactorytoSystem in interface EnumFactory<ContentType>code - - the enumeration valueCopyright © 2014–2018 University Health Network. All rights reserved.