EspressReport 6.6

quadbase.reportdesigner.util
Class BarcodeFormat

java.lang.Object
  extended by quadbase.reportdesigner.util.BarcodeFormat
All Implemented Interfaces:
IFormat

public class BarcodeFormat
extends java.lang.Object
implements IFormat

StringFormat

Class to format String value


Field Summary
static java.lang.String[] BARCODE_NAME
           
static int BOOKLAND
           
static int CODABAR
           
static int CODE128
           
static int CODE128A
           
static int CODE128B
           
static int CODE128C
           
static int CODE2OF7
           
static int CODE39WITHCHECKSUM
           
static int CODE39WITHOUTCHECKSUM
           
static int CODE3OF9WITHCHECKSUM
           
static int CODE3OF9WITHOUTCHECKSUM
           
static int DEFAULT
           
static int EAN128
           
static int EAN13
           
static int EAN8
           
static int GLOBALTRADEITEMNUMBER
           
static int INT2OF5
           
static int MONARCH
           
static int NW7
           
static int PDF417
           
static int RANDOMWEIGHTUPCA
           
static int SCC14SHIPPINGCODE
           
static int SHIPMENTIDENTIFICATIONNUMBER
           
static int SSCC18
           
static int STD2OF5WITHCHECKDIGIT
           
static int STD2OF5WITHOUTCHECKDIGIT
           
static int UPCA
           
static int USD3WITHCHECKSUM
           
static int USD3WITHOUTCHECKSUM
           
static int USD4
           
static int USPS
           
 
Fields inherited from interface quadbase.reportdesigner.util.IFormat
BARCODE, DATETIME, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL
 
Constructor Summary
BarcodeFormat(int format)
          Create a BarcodeFormat instance
 
Method Summary
 java.lang.String format(java.lang.Object obj)
          Define quadbase.reportdesigner.util.IFormat
 int getformat()
          Get the current format
 int getFormatType()
          Define quadbase.reportdesigner.util.IFormat
 java.lang.String getTextFormat()
          Internal use
 void setformat(int format)
          Set logical format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE39WITHCHECKSUM

public static final int CODE39WITHCHECKSUM
See Also:
Constant Field Values

CODE39WITHOUTCHECKSUM

public static final int CODE39WITHOUTCHECKSUM
See Also:
Constant Field Values

INT2OF5

public static final int INT2OF5
See Also:
Constant Field Values

CODE2OF7

public static final int CODE2OF7
See Also:
Constant Field Values

CODABAR

public static final int CODABAR
See Also:
Constant Field Values

EAN128

public static final int EAN128
See Also:
Constant Field Values

UPCA

public static final int UPCA
See Also:
Constant Field Values

STD2OF5WITHCHECKDIGIT

public static final int STD2OF5WITHCHECKDIGIT
See Also:
Constant Field Values

STD2OF5WITHOUTCHECKDIGIT

public static final int STD2OF5WITHOUTCHECKDIGIT
See Also:
Constant Field Values

BOOKLAND

public static final int BOOKLAND
See Also:
Constant Field Values

EAN13

public static final int EAN13
See Also:
Constant Field Values

EAN8

public static final int EAN8
See Also:
Constant Field Values

PDF417

public static final int PDF417
See Also:
Constant Field Values

CODE128

public static final int CODE128
See Also:
Constant Field Values

CODE128A

public static final int CODE128A
See Also:
Constant Field Values

CODE128B

public static final int CODE128B
See Also:
Constant Field Values

CODE128C

public static final int CODE128C
See Also:
Constant Field Values

USD3WITHCHECKSUM

public static final int USD3WITHCHECKSUM
See Also:
Constant Field Values

USD3WITHOUTCHECKSUM

public static final int USD3WITHOUTCHECKSUM
See Also:
Constant Field Values

CODE3OF9WITHCHECKSUM

public static final int CODE3OF9WITHCHECKSUM
See Also:
Constant Field Values

CODE3OF9WITHOUTCHECKSUM

public static final int CODE3OF9WITHOUTCHECKSUM
See Also:
Constant Field Values

GLOBALTRADEITEMNUMBER

public static final int GLOBALTRADEITEMNUMBER
See Also:
Constant Field Values

MONARCH

public static final int MONARCH
See Also:
Constant Field Values

NW7

public static final int NW7
See Also:
Constant Field Values

RANDOMWEIGHTUPCA

public static final int RANDOMWEIGHTUPCA
See Also:
Constant Field Values

SCC14SHIPPINGCODE

public static final int SCC14SHIPPINGCODE
See Also:
Constant Field Values

SHIPMENTIDENTIFICATIONNUMBER

public static final int SHIPMENTIDENTIFICATIONNUMBER
See Also:
Constant Field Values

SSCC18

public static final int SSCC18
See Also:
Constant Field Values

USPS

public static final int USPS
See Also:
Constant Field Values

USD4

public static final int USD4
See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

BARCODE_NAME

public static java.lang.String[] BARCODE_NAME
Constructor Detail

BarcodeFormat

public BarcodeFormat(int format)
Create a BarcodeFormat instance

Parameters:
format - one of the formats listed above (for example, BAR39, IPCA, CODABAR etc.)
Method Detail

getFormatType

public int getFormatType()
Define quadbase.reportdesigner.util.IFormat

Return the type of quadbase.reportdesigner.util.IFormat

Specified by:
getFormatType in interface IFormat
Returns:
IFormat.BARCODE

format

public java.lang.String format(java.lang.Object obj)
Define quadbase.reportdesigner.util.IFormat

Format the object if it is an instance of Boolean, otherwise call the default toString() method

Specified by:
format in interface IFormat
Parameters:
obj - The target object
Returns:
Formatted string

getTextFormat

public java.lang.String getTextFormat()
Internal use

Specified by:
getTextFormat in interface IFormat

getformat

public int getformat()
Get the current format

Parameters:
return - current format, the symbology used to generate the bar code

setformat

public void setformat(int format)
Set logical format

Parameters:
format - new format

EspressReport 6.6