Module jonix.common

Enum Class BatteryTypeAndSafetys

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

public enum BatteryTypeAndSafetys extends Enum<BatteryTypeAndSafetys> implements OnixCodelist
Enum that corresponds to ONIX Codelist 242

Description: Battery type and safety

Jonix-Comment: Introduced in Onix3

See Also:
  • Enum Constant Details

    • Batteries_not_required

      public static final BatteryTypeAndSafetys Batteries_not_required
      The default if battery type and safety information is omitted
    • Batteries_built_in

      public static final BatteryTypeAndSafetys Batteries_built_in
      Batteries built in or pre-installed in product, non-user replaceable. May use <ProductFormFeatureDesciption> to provide further details
    • Batteries_pre_installed

      public static final BatteryTypeAndSafetys Batteries_pre_installed
      Batteries pre-installed, user replaceable. Use <ProductFormFeatureDescription> to provide further details, eg '2 x 1.2V LR6/AA rechargeable', with these details formatted as [integer] x [number]V [type or descriptive text] and usually taken from the outer packaging
    • Batteries_supplied

      public static final BatteryTypeAndSafetys Batteries_supplied
      Batteries included with the product, but not pre-installed. Use <ProductFormFeatureDescription> to provide further details, eg '2 x 1.2V LR6/AA rechargeable', with these details formatted as [integer] x [number]V [type or descriptive text] and usually taken from the outer packaging
    • Batteries_required

      public static final BatteryTypeAndSafetys Batteries_required
      Batteries required for use, but not supplied with the product. May use <ProductFormFeatureDescription> to provide further details, eg '2 x 1.2V LR6/AA rechargeable', with these details formatted as [integer] x [number]V [type or descriptive text] and usually taken from the outer packaging
    • Batteries_supplied_spare

      public static final BatteryTypeAndSafetys Batteries_supplied_spare
      Spare batteries included with product, in addition to those specified using codes 02 or 03. May use <ProductFormFeatureDescription> to provide further details
    • Safety_data_sheet_available

      public static final BatteryTypeAndSafetys Safety_data_sheet_available
      (Material) Safety Data Sheet available for the product (including its batteries). <ProductFormFeatureDescription> must be used to supply URL of documentation
    • Technical_data_sheet_available

      public static final BatteryTypeAndSafetys Technical_data_sheet_available
      Battery manufacturer's technical data sheet available. <ProductFormFeatureDescription> must be used to supply URL of documentation
    • Rechargeable

      public static final BatteryTypeAndSafetys Rechargeable
      Independent of whether charger is supplied as part of the product. Note that this is largely dependent on battery chemistry, but should be specified separately to avoid ambiguity
    • Non_rechargeable

      public static final BatteryTypeAndSafetys Non_rechargeable
    • Battery_warning_text

      public static final BatteryTypeAndSafetys Battery_warning_text
      <ProductFormFeatureDescription> contains battery safety-related warning text, generally taken from the outer packaging (eg 'Warning - internal battery: product must not be pierced')
    • Battery_chemistry

      public static final BatteryTypeAndSafetys Battery_chemistry
      <ProductFormFeatureDescription> must provide details of the battery chemistry (eg 'Sodium-Sulfur'). Use ONLY where no suitable code exists for the specific chemistry used
    • Lithium_ion

      public static final BatteryTypeAndSafetys Lithium_ion
      For all specific battery chemistries, <ProductFormFeatureDescription> may optionally describe the battery construction - for example the nunber of individual cells per battery and any other physical details, eg '4 x pouch cells'
    • Lithium_polymer

      public static final BatteryTypeAndSafetys Lithium_polymer
    • Lithium_metal

      public static final BatteryTypeAndSafetys Lithium_metal
    • Nickel_metal_hydride

      public static final BatteryTypeAndSafetys Nickel_metal_hydride
    • Nickel_Cadmium

      public static final BatteryTypeAndSafetys Nickel_Cadmium
    • Zinc_Manganese_dioxide

      public static final BatteryTypeAndSafetys Zinc_Manganese_dioxide
      'Alkaline battery'
    • Zinc_Carbon

      public static final BatteryTypeAndSafetys Zinc_Carbon
      Common 'dry cell' battery
    • Zinc_air

      public static final BatteryTypeAndSafetys Zinc_air
    • Silver_oxide

      public static final BatteryTypeAndSafetys Silver_oxide
    • Battery_description

      public static final BatteryTypeAndSafetys Battery_description
      <ProductFormFeatureDescription> may contain a full description of the batteries supplied (chemistry, cell structure, battery size and weight, number, capacity etc). Use ONLY if the product (or a product part) contains multiple different TYPES of battery that cannot be described with existing codes (eg a mix of battery chemistries or batteries of different sizes, within a single product part)
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static BatteryTypeAndSafetys[] 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 BatteryTypeAndSafetys 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 BatteryTypeAndSafetys byCode(String code)
    • byCodeOptional

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

      public static String codeToDesciption(String code)