- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<BatteryTypeAndSafetys>
,Constable
Enum
that corresponds to ONIX Codelist 242
Description: Battery type and safety
Jonix-Comment: Introduced in Onix3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionBatteries built in or pre-installed in product, non-user replaceable.The default if battery type and safety information is omittedBatteries pre-installed, user replaceable.Batteries required for use, but not supplied with the product.Batteries included with the product, but not pre-installed.Spare batteries included with product, in addition to those specified using codes 02 or 03.<ProductFormFeatureDescription> must provide details of the battery chemistry (eg 'Sodium-Sulfur').<ProductFormFeatureDescription> may contain a full description of the batteries supplied (chemistry, cell structure, battery size and weight, number, capacity etc).<ProductFormFeatureDescription> contains battery safety-related warning text, generally taken from the outer packaging (eg 'Warning - internal battery: product must not be pierced')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'Independent of whether charger is supplied as part of the product.(Material) Safety Data Sheet available for the product (including its batteries).Battery manufacturer's technical data sheet available.Common 'dry cell' battery'Alkaline battery' -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatteryTypeAndSafetys
static Optional<BatteryTypeAndSafetys>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static BatteryTypeAndSafetys
Returns the enum constant of this class with the specified name.static BatteryTypeAndSafetys[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
Batteries_not_required
The default if battery type and safety information is omitted -
Batteries_built_in
Batteries built in or pre-installed in product, non-user replaceable. May use <ProductFormFeatureDesciption> to provide further details -
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
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
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
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
(Material) Safety Data Sheet available for the product (including its batteries). <ProductFormFeatureDescription> must be used to supply URL of documentation -
Technical_data_sheet_available
Battery manufacturer's technical data sheet available. <ProductFormFeatureDescription> must be used to supply URL of documentation -
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
-
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
<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
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
-
Lithium_metal
-
Nickel_metal_hydride
-
Nickel_Cadmium
-
Zinc_Manganese_dioxide
'Alkaline battery' -
Zinc_Carbon
Common 'dry cell' battery -
Zinc_air
-
Silver_oxide
-
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
-
description
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-