public class ChecksumMode extends Object
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier | Constructor and Description |
|---|---|
protected |
ChecksumMode(String name)
Creates a new ChecksumMode instance.
|
| Modifier and Type | Method and Description |
|---|---|
static ChecksumMode |
byName(String name)
Returns a ChecksumMode instance by name.
|
String |
getName() |
public static final ChecksumMode CP_AUTO
public static final ChecksumMode CP_IGNORE
public static final ChecksumMode CP_ADD
public static final ChecksumMode CP_CHECK
protected ChecksumMode(String name)
name - the name of the ChecksumModepublic String getName()
public static ChecksumMode byName(String name)
name - the name of the ChecksumModeCopyright © 2003–2023. All rights reserved.