Package org.hl7.fhir.dstu3.model
Class Enumerations.AbstractTypeEnumFactory
java.lang.Object
org.hl7.fhir.dstu3.model.Enumerations.AbstractTypeEnumFactory
- All Implemented Interfaces:
Serializable
,EnumFactory<Enumerations.AbstractType>
,org.hl7.fhir.instance.model.api.IBaseEnumFactory<Enumerations.AbstractType>
- Enclosing class:
Enumerations
public static class Enumerations.AbstractTypeEnumFactory
extends Object
implements EnumFactory<Enumerations.AbstractType>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRead an enumeration value from the string that represents it on the XML or JSONfromType
(PrimitiveType<?> code) Get the XML/JSON representation for an enumerated valueGet the XML/JSON representation for an enumerated value
-
Constructor Details
-
AbstractTypeEnumFactory
public AbstractTypeEnumFactory()
-
-
Method Details
-
fromCode
Description copied from interface:EnumFactory
Read an enumeration value from the string that represents it on the XML or JSON- Specified by:
fromCode
in interfaceEnumFactory<Enumerations.AbstractType>
- Specified by:
fromCode
in interfaceorg.hl7.fhir.instance.model.api.IBaseEnumFactory<Enumerations.AbstractType>
- Parameters:
codeString
- the value found in the XML or JSON- Returns:
- the enumeration value
- Throws:
IllegalArgumentException
-
fromType
public Enumeration<Enumerations.AbstractType> fromType(PrimitiveType<?> code) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
toCode
Description copied from interface:EnumFactory
Get the XML/JSON representation for an enumerated value- Specified by:
toCode
in interfaceEnumFactory<Enumerations.AbstractType>
- Specified by:
toCode
in interfaceorg.hl7.fhir.instance.model.api.IBaseEnumFactory<Enumerations.AbstractType>
- Parameters:
code
- - the enumeration value- Returns:
- the XML/JSON representation
-
toSystem
Description copied from interface:EnumFactory
Get the XML/JSON representation for an enumerated value- Specified by:
toSystem
in interfaceEnumFactory<Enumerations.AbstractType>
- Specified by:
toSystem
in interfaceorg.hl7.fhir.instance.model.api.IBaseEnumFactory<Enumerations.AbstractType>
- Parameters:
code
- - the enumeration value- Returns:
- the XML/JSON representation
-