com.google.zxing

## Enum ResultMetadataType

- java.lang.Object
- - java.lang.Enum<ResultMetadataType>
  - - com.google.zxing.ResultMetadataType

- All Implemented Interfaces:
    Serializable, Comparable<ResultMetadataType>

      public enum ResultMetadataType
      extends Enum<ResultMetadataType>

  Represents some type of metadata about the result of the decoding that the decoder wishes to communicate back to the caller.
  Author:
    Sean Owen

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `BYTE_SEGMENTS` 2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data.
    `ERROR_CORRECTION_LEVEL` Error correction level used, if applicable.
    `ISSUE_NUMBER` For some periodicals, indicates the issue number as an `Integer`.
    `ORIENTATION` Denotes the likely approximate orientation of the barcode in the image.
    `OTHER` Unspecified, application-specific metadata.
    `PDF417_EXTRA_METADATA` PDF417-specific metadata
    `POSSIBLE_COUNTRY` For some products, the possible country of manufacture as a `String` denoting the ISO country code.
    `STRUCTURED_APPEND_PARITY` If the code format supports structured append and the current scanned code is part of one then the parity is given with it.
    `STRUCTURED_APPEND_SEQUENCE` If the code format supports structured append and the current scanned code is part of one then the sequence number is given with it.
    `SUGGESTED_PRICE` For some products, indicates the suggested retail price in the barcode as a formatted `String`.
    `UPC_EAN_EXTENSION` For some products, the extension text

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ResultMetadataType` | `valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static ResultMetadataType[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### OTHER

          public static final ResultMetadataType OTHER

      Unspecified, application-specific metadata. Maps to an unspecified `Object`.

    - #### ORIENTATION

          public static final ResultMetadataType ORIENTATION

      Denotes the likely approximate orientation of the barcode in the image. This value is given as degrees rotated clockwise from the normal, upright orientation. For example a 1D barcode which was found by reading top-to-bottom would be said to have orientation "90". This key maps to an `Integer` whose value is in the range [0,360).

    - #### BYTE_SEGMENTS

          public static final ResultMetadataType BYTE_SEGMENTS

      2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data. While `Result` makes available the complete raw bytes in the barcode for these formats, it does not offer the bytes from the byte segments alone.

      This maps to a `List` of byte arrays corresponding to the raw bytes in the byte segments in the barcode, in order.

    - #### ERROR_CORRECTION_LEVEL

          public static final ResultMetadataType ERROR_CORRECTION_LEVEL

      Error correction level used, if applicable. The value type depends on the format, but is typically a String.

    - #### ISSUE_NUMBER

          public static final ResultMetadataType ISSUE_NUMBER

      For some periodicals, indicates the issue number as an `Integer`.

    - #### SUGGESTED_PRICE

          public static final ResultMetadataType SUGGESTED_PRICE

      For some products, indicates the suggested retail price in the barcode as a formatted `String`.

    - #### POSSIBLE_COUNTRY

          public static final ResultMetadataType POSSIBLE_COUNTRY

      For some products, the possible country of manufacture as a `String` denoting the ISO country code. Some map to multiple possible countries, like "US/CA".

    - #### UPC_EAN_EXTENSION

          public static final ResultMetadataType UPC_EAN_EXTENSION

      For some products, the extension text

    - #### PDF417_EXTRA_METADATA

          public static final ResultMetadataType PDF417_EXTRA_METADATA

      PDF417-specific metadata

    - #### STRUCTURED_APPEND_SEQUENCE

          public static final ResultMetadataType STRUCTURED_APPEND_SEQUENCE

      If the code format supports structured append and the current scanned code is part of one then the sequence number is given with it.

    - #### STRUCTURED_APPEND_PARITY

          public static final ResultMetadataType STRUCTURED_APPEND_PARITY

      If the code format supports structured append and the current scanned code is part of one then the parity is given with it.

  - ### Method Detail

    - #### values

          public static ResultMetadataType[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (ResultMetadataType c : ResultMetadataType.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static ResultMetadataType valueOf(String name)

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        `NullPointerException` - if the argument is null

Copyright © 2007–2018. All rights reserved.