Package org.hl7.fhir.instance.model.api
Interface IBaseEnumFactory<T extends Enum<?>>
- All Superinterfaces:
Serializable
-
Method Summary
-
Method Details
-
fromCode
Read an enumeration value from the string that represents it on the XML or JSON- Parameters:
codeString
- the value found in the XML or JSON- Returns:
- the enumeration value
- Throws:
IllegalArgumentException
- is the value is not known
-
toCode
Get the XML/JSON representation for an enumerated value- Parameters:
code
- - the enumeration value- Returns:
- the XML/JSON representation
-
toSystem
Get the system for a given enum value
-