zxing/csharp/BarcodeFormat.cs
srowen 7854d30103 Committed C# port from Mohamad
git-svn-id: https://zxing.googlecode.com/svn/trunk@817 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-08 17:02:40 +00:00

89 lines
4 KiB
C#
Executable file

/*
* Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace com.google.zxing
{
using System;
/// <summary> Enumerates barcode formats known to this package.
/// *
/// </summary>
/// <author> Sean Owen
///
/// </author>
public sealed class BarcodeFormat
{
// No, we can't use an enum here. J2ME doesn't support it.
/// <summary>QR Code 2D barcode format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'QR_CODE '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat QR_CODE = new BarcodeFormat("QR_CODE");
/// <summary>DataMatrix 2D barcode format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'DATAMATRIX '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat DATAMATRIX = new BarcodeFormat("DATAMATRIX");
/// <summary>UPC-E 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'UPC_E '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat UPC_E = new BarcodeFormat("UPC_E");
/// <summary>UPC-A 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'UPC_A '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat UPC_A = new BarcodeFormat("UPC_A");
/// <summary>EAN-8 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'EAN_8 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat EAN_8 = new BarcodeFormat("EAN_8");
/// <summary>EAN-13 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'EAN_13 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat EAN_13 = new BarcodeFormat("EAN_13");
/// <summary>Code 128 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'CODE_128 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat CODE_128 = new BarcodeFormat("CODE_128");
/// <summary>Code 39 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'CODE_39 '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat CODE_39 = new BarcodeFormat("CODE_39");
/// <summary>ITF (Interleaved Two of Five) 1D format.
/// </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'ITF '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
public static readonly BarcodeFormat ITF = new BarcodeFormat("ITF");
//UPGRADE_NOTE: Final was removed from the declaration of 'name '. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1003"'
private System.String name;
private BarcodeFormat(System.String name)
{
this.name = name;
}
public override System.String ToString()
{
return name;
}
}
}