|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.workflow.util.BarcodeDecoder
public class BarcodeDecoder
Converts bar code string or epc to epc id pattern. If the bar code can be converted to a full tag URI, like SSCC, this will return an EPC identity URI string. If the bar code represents only an EPC class, it will be converted to an EPC identity pattern representing the EPC class.
This relies on the company prefix table to get the company prefix out of a bar code like GTIN.
This accepts barcodes in following formats:
String value of barcode with AI fields as String or Barcode tag list (EPC URI in the format urn:connecterra:barcode:[barcodeString]).
This currently supports the following bar code types:
SSCC, GTIN, GLN, GRAI, GIAI are supported. Symbology character decoding is not supported yet. SSCC and SGTIN barcode with AI fields are not supported.
| Nested Class Summary | |
|---|---|
static class |
BarcodeDecoder.BarcodeEncoding
|
| Field Summary | |
|---|---|
static String |
BARCODEURI_PREFIX
|
static int |
COMPANY_PREFIX_MAX_LENGTH
|
static int |
COMPANY_PREFIX_MIN_LENGTH
|
static String |
DELIVER_FOR_FORWARD_TO_GLN_AI
|
static String |
DELIVER_TO_GLN_AI
|
static String |
EPC_ID_URI_PREFIX
|
static String |
GIAI_AI
|
static String |
GLN_OF_INVOICING_PARTY_GLN_AI
|
static String |
GRAI_AI
|
static String |
ID_OF_PHYSICAL_LOCATION_GLN_AI
|
static String |
ID_PAT_URI_HEADER
|
static String |
INVOICE_GLN_AI
|
static String |
PURCHASED_FROM_GLN_AI
|
| Constructor Summary | |
|---|---|
BarcodeDecoder()
|
|
| Method Summary | |
|---|---|
URI |
decode(String barcodeData)
Decodes the input bar code string to an EPC identity URI or EPC identity pattern URI. |
URI |
decodeFromTagList(List barcodeTagData)
Takes bar code specifed in the given tag list input and decodes the bar code string to an EPC identity URI or EPC identity pattern URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COMPANY_PREFIX_MIN_LENGTH
public static final int COMPANY_PREFIX_MAX_LENGTH
public static final String EPC_ID_URI_PREFIX
public static final String ID_PAT_URI_HEADER
public static final String BARCODEURI_PREFIX
public static final String DELIVER_TO_GLN_AI
public static final String INVOICE_GLN_AI
public static final String PURCHASED_FROM_GLN_AI
public static final String DELIVER_FOR_FORWARD_TO_GLN_AI
public static final String ID_OF_PHYSICAL_LOCATION_GLN_AI
public static final String GLN_OF_INVOICING_PARTY_GLN_AI
public static final String GRAI_AI
public static final String GIAI_AI
| Constructor Detail |
|---|
public BarcodeDecoder()
| Method Detail |
|---|
public URI decodeFromTagList(List barcodeTagData) throws InvalidBarcodeException, com.connecterra.ale.epc.EPCException
TagListBuilder.
The input list must contain only one entry with the bar code URI.
Accepted bar code types and rules used when decoding are specified in the class
level documentation.
barcodeTagData - tag list with only one entry, which contains the bar code string.
InvalidBarcodeException - if the bar code cannot be parsed as any of the
supported bar code types
com.connecterra.ale.epc.EPCException - if problem creating EPC from supplied tag datapublic URI decode(String barcodeData) throws InvalidBarcodeException
barcodeData - bar code string
InvalidBarcodeException - if the bar code cannot be parsed as any of the
supported bar code types or problem decoding barcode to a specific encoding
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||