Class ToothEnumFactory

java.lang.Object
org.hl7.fhir.dstu3.model.codesystems.ToothEnumFactory
All Implemented Interfaces:
Serializable, EnumFactory<Tooth>, org.hl7.fhir.instance.model.api.IBaseEnumFactory<Tooth>

public class ToothEnumFactory extends Object implements EnumFactory<Tooth>
See Also:
  • Constructor Details

  • Method Details

    • fromCode

      public Tooth fromCode(String codeString) throws IllegalArgumentException
      Description copied from interface: EnumFactory
      Read an enumeration value from the string that represents it on the XML or JSON
      Specified by:
      fromCode in interface EnumFactory<Tooth>
      Specified by:
      fromCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<Tooth>
      Parameters:
      codeString - the value found in the XML or JSON
      Returns:
      the enumeration value
      Throws:
      IllegalArgumentException
    • toCode

      public String toCode(Tooth code)
      Description copied from interface: EnumFactory
      Get the XML/JSON representation for an enumerated value
      Specified by:
      toCode in interface EnumFactory<Tooth>
      Specified by:
      toCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<Tooth>
      Parameters:
      code - - the enumeration value
      Returns:
      the XML/JSON representation
    • toSystem

      public String toSystem(Tooth code)
      Description copied from interface: EnumFactory
      Get the XML/JSON representation for an enumerated value
      Specified by:
      toSystem in interface EnumFactory<Tooth>
      Specified by:
      toSystem in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<Tooth>
      Parameters:
      code - - the enumeration value
      Returns:
      the XML/JSON representation