![JAR search and dependency download from the Maven repository](/logo.png)
com.pnuema.java.barcode.BarcodeCommon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of barcode Show documentation
Show all versions of barcode Show documentation
Barcode image generation library in Java
package com.pnuema.java.barcode;
import java.util.ArrayList;
import java.util.List;
public abstract class BarcodeCommon implements IBarcode {
private String rawData = "";
private final List errors = new ArrayList<>();
protected void setRawData(String rawData) {
this.rawData = rawData;
}
public String getRawData() {
return rawData;
}
@SuppressWarnings("WeakerAccess")
public List getErrors() {
return errors;
}
public void clearErrors() {
errors.clear();
}
protected void error(String ErrorMessage) {
errors.add(ErrorMessage);
throw new BarcodeException(ErrorMessage);
}
protected static boolean checkNumericOnly(String data) {
return data.matches("^\\d+$");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy