|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.equanda.util.barcode.EAN128Builder
public abstract class EAN128Builder
abstract class for building EAN 128 barcodes, you should use a renderer specific implementation
Field Summary | |
---|---|
protected String |
codeA
|
protected String |
codeB
|
protected String |
codeC
|
protected String |
fnc1
following members and methods should be made concrete by the implementing class as they are dependent on the barcode renderer (most printers need different encodings They should allow all types of renderers |
protected String |
shift
|
protected String |
start
|
Constructor Summary | |
---|---|
EAN128Builder()
|
Method Summary | |
---|---|
String |
build(Map<String,String> data)
build the barcode data string |
String |
buildLabel(Map<String,String> data)
build the human readable representation for a barcode which is normally used as label under the barcode itself |
protected abstract String |
preprocess(String data)
preproces should handle any manipulations to the values which are put in the barcode to prevent any unintended special characters from appearing in the barcode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String fnc1
protected String start
protected String shift
protected String codeA
protected String codeB
protected String codeC
Constructor Detail |
---|
public EAN128Builder()
Method Detail |
---|
public String build(Map<String,String> data) throws EAN128InvalidData
data
- map with AI/value pairs
EAN128InvalidData
- invalid barcode datapublic String buildLabel(Map<String,String> data) throws EAN128InvalidData
data
- map with AI/value pairs
EAN128InvalidData
- invalid barcode structureprotected abstract String preprocess(String data)
data
- data to preproces
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |