Package com.google.zxing
Enum ResultMetadataType
- All Implemented Interfaces:
- Serializable,- Comparable<ResultMetadataType>,- java.lang.constant.Constable
Represents some type of metadata about the result of the decoding that the decoder
 wishes to communicate back to the caller.
- Author:
- Sean Owen
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data.The number of erasures corrected.Error correction level used, if applicable.The number of errors corrected.For some periodicals, indicates the issue number as anInteger.Denotes the likely approximate orientation of the barcode in the image.Unspecified, application-specific metadata.PDF417-specific metadata.For some products, the possible country of manufacture as aStringdenoting the ISO country code.If the code format supports structured append and the current scanned code is part of one then the parity is given with it.If the code format supports structured append and the current scanned code is part of one then the sequence number is given with it.For some products, indicates the suggested retail price in the barcode as a formattedString.Barcode Symbology Identifier.For some products, the extension text.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ResultMetadataTypeReturns 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.
- 
Enum Constant Details- 
OTHERUnspecified, application-specific metadata. Maps to an unspecifiedObject.
- 
ORIENTATIONDenotes 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 anIntegerwhose value is in the range [0,360).
- 
BYTE_SEGMENTS2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data. While Resultmakes 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 Listof byte arrays corresponding to the raw bytes in the byte segments in the barcode, in order.
- 
ERROR_CORRECTION_LEVELError correction level used, if applicable. The value type depends on the format, but is typically a String.
- 
ERRORS_CORRECTEDThe number of errors corrected. If applicable, maps to anIntegerof value greater than or equal to zero.
- 
ERASURES_CORRECTEDThe number of erasures corrected. If applicable, maps to anIntegerof value greater than or equal to zero.
- 
ISSUE_NUMBERFor some periodicals, indicates the issue number as anInteger.
- 
SUGGESTED_PRICEFor some products, indicates the suggested retail price in the barcode as a formattedString.
- 
POSSIBLE_COUNTRYFor some products, the possible country of manufacture as aStringdenoting the ISO country code. Some map to multiple possible countries, like "US/CA".
- 
UPC_EAN_EXTENSIONFor some products, the extension text.
- 
PDF417_EXTRA_METADATAPDF417-specific metadata.
- 
STRUCTURED_APPEND_SEQUENCEIf 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_PARITYIf the code format supports structured append and the current scanned code is part of one then the parity is given with it.
- 
SYMBOLOGY_IDENTIFIERBarcode Symbology Identifier. Note: According to the GS1 specification the identifier may have to replace a leading FNC1/GS character when prepending to the barcode content.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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
 
 
-