barcode4j 2.1.0

org.krysalis.barcode4j
Class ChecksumMode

java.lang.Object
  extended by org.krysalis.barcode4j.ChecksumMode

public class ChecksumMode
extends java.lang.Object

Enumeration type for checksum policy.

Version:
$Id: ChecksumMode.java,v 1.3 2004/10/02 14:53:22 jmaerki Exp $
Author:
Jeremias Maerki

Field Summary
static ChecksumMode CP_ADD
          "add" adds the necessary checksum to the message to be encoded
static ChecksumMode CP_AUTO
          "auto" chooses the barcode's default checksum behaviour
static ChecksumMode CP_CHECK
          "check" requires the check character to be present in the message.
static ChecksumMode CP_IGNORE
          "ignore" doesn't check nor add a checksum
 
Constructor Summary
protected ChecksumMode(java.lang.String name)
          Creates a new ChecksumMode instance.
 
Method Summary
static ChecksumMode byName(java.lang.String name)
          Returns a ChecksumMode instance by name.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CP_AUTO

public static final ChecksumMode CP_AUTO
"auto" chooses the barcode's default checksum behaviour


CP_IGNORE

public static final ChecksumMode CP_IGNORE
"ignore" doesn't check nor add a checksum


CP_ADD

public static final ChecksumMode CP_ADD
"add" adds the necessary checksum to the message to be encoded


CP_CHECK

public static final ChecksumMode CP_CHECK
"check" requires the check character to be present in the message. It will be checked.

Constructor Detail

ChecksumMode

protected ChecksumMode(java.lang.String name)
Creates a new ChecksumMode instance.

Parameters:
name - the name of the ChecksumMode
Method Detail

getName

public java.lang.String getName()
Returns:
the name of the instance.

byName

public static ChecksumMode byName(java.lang.String name)
Returns a ChecksumMode instance by name.

Parameters:
name - the name of the ChecksumMode
Returns:
the requested instance

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.