Module jonix.common

Enum Class Genders

java.lang.Object
java.lang.Enum<Genders>
com.tectonica.jonix.common.codelist.Genders
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<Genders>, Constable

public enum Genders extends Enum<Genders> implements OnixCodelist
Enum that corresponds to ONIX Codelist 229

Description: Gender - based on ISO 5218

See Also:
  • Enum Constant Details

    • Unknown_or_unspecified

      public static final Genders Unknown_or_unspecified
      Provides positive indication that the gender is not known or is not specified by the sender for any reason
    • Female

      public static final Genders Female
    • Male

      public static final Genders Male
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static Genders[] 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 Genders 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
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static Genders byCode(String code)
    • byCodeOptional

      public static Optional<Genders> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)