(element, SimpleBarcodesModule.NAMESPACE, "show-text", true);
final boolean checksum = ElementTypeUtils.getBooleanAttribute
(element, SimpleBarcodesAttributeNames.NAMESPACE, SimpleBarcodesAttributeNames.CHECKSUM_ATTRIBUTE, true);
// create barcde and set its properties
final Barcode barcode = SimpleBarcodesUtility.createBarcode(value.toString(), type, checksum);
if (barcode == null)
{
final Object nullValue = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE);
return filter(runtime, element, nullValue);
}
barcode.setBackground(backgroundColor);
barcode.setForeground(color);
barcode.setDrawingText(showText);
barcode.setBarWidth(barWidth);
barcode.setBarHeight(barHeight);
barcode.setOpaque(backgroundColor.getAlpha() == 255);
return new BarcodeWrapper(barcode);
}