Class ChecksumMode

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

public class ChecksumMode extends 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 Details

    • 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 Details

    • ChecksumMode

      protected ChecksumMode(String name)
      Creates a new ChecksumMode instance.
      Parameters:
      name - the name of the ChecksumMode
  • Method Details

    • byName

      public static ChecksumMode byName(String name)
      Returns a ChecksumMode instance by name.
      Parameters:
      name - the name of the ChecksumMode
      Returns:
      the requested instance
    • getName

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