Package org.krysalis.barcode4j
Class ChecksumMode
java.lang.Object
org.krysalis.barcode4j.ChecksumMode
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
FieldsModifier and TypeFieldDescriptionstatic final ChecksumMode"add" adds the necessary checksum to the message to be encodedstatic final ChecksumMode"auto" chooses the barcode's default checksum behaviourstatic final ChecksumMode"check" requires the check character to be present in the message.static final ChecksumMode"ignore" doesn't check nor add a checksum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChecksumMode(String name) Creates a new ChecksumMode instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChecksumModeReturns a ChecksumMode instance by name.getName()
-
Field Details
-
CP_AUTO
"auto" chooses the barcode's default checksum behaviour -
CP_IGNORE
"ignore" doesn't check nor add a checksum -
CP_ADD
"add" adds the necessary checksum to the message to be encoded -
CP_CHECK
"check" requires the check character to be present in the message. It will be checked.
-
-
Constructor Details
-
ChecksumMode
Creates a new ChecksumMode instance.- Parameters:
name- the name of the ChecksumMode
-
-
Method Details
-
byName
Returns a ChecksumMode instance by name.- Parameters:
name- the name of the ChecksumMode- Returns:
- the requested instance
-
getName
- Returns:
- the name of the instance.
-