Package org.hl7.v3

Enum Class Spouse

All Implemented Interfaces:
Serializable, Comparable<Spouse>, Constable

public enum Spouse extends Enum<Spouse>

Java class for Spouse.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="Spouse">
   <restriction base="{urn:hl7-org:v3}cs">
     <enumeration value="SPS"/>
     <enumeration value="HUSB"/>
     <enumeration value="WIFE"/>
   </restriction>
 </simpleType>
 
  • Enum Constant Details

    • SPS

      public static final Spouse SPS
    • HUSB

      public static final Spouse HUSB
    • WIFE

      public static final Spouse WIFE
  • Method Details

    • values

      public static Spouse[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Spouse valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
    • fromValue

      public static Spouse fromValue(String v)