2 * Copyright 2007 ZXing authors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
16 namespace com.google.zxing
\r
20 /// <summary> Enumerates barcode formats known to this package.
\r
23 /// <author> Sean Owen
\r
26 public sealed class BarcodeFormat
\r
29 // No, we can't use an enum here. J2ME doesn't support it.
\r
31 /// <summary>QR Code 2D barcode format.
\r
33 //UPGRADE_NOTE: Final was removed from the declaration of 'QR_CODE '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
34 public static readonly BarcodeFormat QR_CODE = new BarcodeFormat("QR_CODE");
\r
36 /// <summary>DataMatrix 2D barcode format.
\r
38 //UPGRADE_NOTE: Final was removed from the declaration of 'DATAMATRIX '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
39 public static readonly BarcodeFormat DATAMATRIX = new BarcodeFormat("DATAMATRIX");
\r
41 /// <summary>UPC-E 1D format.
\r
43 //UPGRADE_NOTE: Final was removed from the declaration of 'UPC_E '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
44 public static readonly BarcodeFormat UPC_E = new BarcodeFormat("UPC_E");
\r
46 /// <summary>UPC-A 1D format.
\r
48 //UPGRADE_NOTE: Final was removed from the declaration of 'UPC_A '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
49 public static readonly BarcodeFormat UPC_A = new BarcodeFormat("UPC_A");
\r
51 /// <summary>EAN-8 1D format.
\r
53 //UPGRADE_NOTE: Final was removed from the declaration of 'EAN_8 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
54 public static readonly BarcodeFormat EAN_8 = new BarcodeFormat("EAN_8");
\r
56 /// <summary>EAN-13 1D format.
\r
58 //UPGRADE_NOTE: Final was removed from the declaration of 'EAN_13 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
59 public static readonly BarcodeFormat EAN_13 = new BarcodeFormat("EAN_13");
\r
61 /// <summary>Code 128 1D format.
\r
63 //UPGRADE_NOTE: Final was removed from the declaration of 'CODE_128 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
64 public static readonly BarcodeFormat CODE_128 = new BarcodeFormat("CODE_128");
\r
66 /// <summary>Code 39 1D format.
\r
68 //UPGRADE_NOTE: Final was removed from the declaration of 'CODE_39 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
69 public static readonly BarcodeFormat CODE_39 = new BarcodeFormat("CODE_39");
\r
71 /// <summary>ITF (Interleaved Two of Five) 1D format.
\r
73 //UPGRADE_NOTE: Final was removed from the declaration of 'ITF '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
74 public static readonly BarcodeFormat ITF = new BarcodeFormat("ITF");
\r
76 //UPGRADE_NOTE: Final was removed from the declaration of 'name '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
\r
77 private System.String name;
\r
79 private BarcodeFormat(System.String name)
\r
84 public override System.String ToString()
\r