Module jonix.onix2

Class EAN13

java.lang.Object
com.tectonica.jonix.onix2.EAN13
All Implemented Interfaces:
OnixElement<String>, OnixTag, Serializable

@Deprecated public class EAN13 extends Object implements OnixElement<String>, Serializable
Deprecated.

EAN.UCC-13 article number

The cross-industry product code administered by EAN International and its member agencies worldwide, in association with UCC in the US. Optional and non-repeating. For books, an EAN number can be derived from a ten-character ISBN by (a) prefixing it with the three digits 978, (b) deleting the ISBN check character, and (c) attaching a new check digit calculated according to EAN rules. The <ProductIdentifier> composite on a later page provides a more general method of handling this and other product codes, and is to be preferred.

Format Fixed-length, 13 numeric digits. The last digit is a modulus-10 check digit calculated in accordance with the rules given at http://www.ean-int.org/cdcalcul.html
Reference name <EAN13>
Short tag <b005>
Example <b005>9788474339796</b005>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      Deprecated.
      See Also:
    • shortname

      public static final String shortname
      Deprecated.
      See Also:
    • textformat

      public TextFormats textformat
      Deprecated.
    • textcase

      public TextCaseFlags textcase
      Deprecated.
    • language

      public Languages language
      Deprecated.
    • transliteration

      public TransliterationSchemes transliteration
      Deprecated.
    • datestamp

      public String datestamp
      Deprecated.
      (type: DateOrDateTime)
    • sourcetype

      public RecordSourceTypes sourcetype
      Deprecated.
    • sourcename

      public String sourcename
      Deprecated.
    • value

      public String value
      Deprecated.
      This is the raw content of EAN13. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Fixed-length, 13 numeric digits. The last digit is a modulus-10 check digit calculated in accordance with the rules given at http://www.ean-int.org/cdcalcul.html

      (type: NonEmptyString)

    • EMPTY

      public static final EAN13 EMPTY
      Deprecated.
  • Constructor Details

    • EAN13

      public EAN13()
      Deprecated.
    • EAN13

      public EAN13(Element element)
      Deprecated.
  • Method Details

    • __v

      public String __v()
      Deprecated.
      Internal API, use the OnixElement.value() method or the OnixElement.value() field instead
      Specified by:
      __v in interface OnixElement<String>
    • exists

      public boolean exists()
      Deprecated.
      Description copied from interface: OnixTag
      indicates whether this tag exists in the ONIX record
      Specified by:
      exists in interface OnixTag
      Returns:
      whether this tag (<EAN13> or <b005>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<EAN13> action)
      Deprecated.