Package net.webpdf.wsclient.openapi
Class OperationBarcodeSelection
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationBarcodeSelection
-
public class OperationBarcodeSelection extends Object
This section is used to control the recognition process and configure settings that apply only to specific barcode types.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWED_LENGTHSstatic StringJSON_PROPERTY_BARCODE39_CHECK_DIGITstatic StringJSON_PROPERTY_CHARSETstatic StringJSON_PROPERTY_CODABAR_START_END_DIGITSstatic StringJSON_PROPERTY_FORMATSstatic StringJSON_PROPERTY_GS1static StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_PURE_BARCODEstatic StringJSON_PROPERTY_RESOLUTIONstatic StringJSON_PROPERTY_SCAN_AREAstatic StringJSON_PROPERTY_TRY_HARDERstatic StringJSON_PROPERTY_UPC_EAN_EXTENSIONS
-
Constructor Summary
Constructors Constructor Description OperationBarcodeSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationBarcodeSelectionallowedLengths(String allowedLengths)OperationBarcodeSelectionbarcode39CheckDigit(Boolean barcode39CheckDigit)OperationBarcodeSelectioncharset(String charset)OperationBarcodeSelectioncodabarStartEndDigits(Boolean codabarStartEndDigits)booleanequals(Object o)OperationBarcodeSelectionformats(String formats)@Nullable StringgetAllowedLengths()If this value is set, it will limit the allowed lengths for encoded values.@Nullable BooleangetBarcode39CheckDigit()If this value is set to \"true\", the system will assume that all recognized Code 39 barcodes contain a correct check digit.@Nullable StringgetCharset()Used to specify the character set in which the barcode contents are stored.@Nullable BooleangetCodabarStartEndDigits()If this value is set to \"true\", the start and stop symbols of recognized Codabar barcodes will be read instead of removed during recognition.@NotNull StringgetFormats()Used to define the list of barcodes (comma-separated) that should be searched for.@Nullable BooleangetGs1()If this value is set to \"true\", the system will assume that all recognized barcodes are GS1-compliant barcodes, and the way all processes behave and work will be adjusted accordingly (for instance, the way in which the FNC1 character is handled for Code 128)@Nullable StringgetPages()The page range within which barcodes should be scanned.@Nullable BooleangetPureBarcode()If this value is set to \"true\", the system will assume that the source document being scanned (limited by `<scanArea>`) does not contain any elements other than the barcode.@Nullable IntegergetResolution()Used to select the resolution for the recognition operation.@NotNull OperationRectanglegetScanArea()Get scanArea@Nullable BooleangetTryHarder()If this value is set to \"true\", more computing time will be invested in order to guarantee successful recognition.@Nullable StringgetUpcEanExtensions()If this value is set, it will limit the allowed lengths for encoded EAN and UPC Extensions.OperationBarcodeSelectiongs1(Boolean gs1)inthashCode()OperationBarcodeSelectionpages(String pages)OperationBarcodeSelectionpureBarcode(Boolean pureBarcode)OperationBarcodeSelectionresolution(Integer resolution)OperationBarcodeSelectionscanArea(OperationRectangle scanArea)voidsetAllowedLengths(String allowedLengths)voidsetBarcode39CheckDigit(Boolean barcode39CheckDigit)voidsetCharset(String charset)voidsetCodabarStartEndDigits(Boolean codabarStartEndDigits)voidsetFormats(String formats)voidsetGs1(Boolean gs1)voidsetPages(String pages)voidsetPureBarcode(Boolean pureBarcode)voidsetResolution(Integer resolution)voidsetScanArea(OperationRectangle scanArea)voidsetTryHarder(Boolean tryHarder)voidsetUpcEanExtensions(String upcEanExtensions)StringtoString()OperationBarcodeSelectiontryHarder(Boolean tryHarder)OperationBarcodeSelectionupcEanExtensions(String upcEanExtensions)
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED_LENGTHS
public static final String JSON_PROPERTY_ALLOWED_LENGTHS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BARCODE39_CHECK_DIGIT
public static final String JSON_PROPERTY_BARCODE39_CHECK_DIGIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHARSET
public static final String JSON_PROPERTY_CHARSET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CODABAR_START_END_DIGITS
public static final String JSON_PROPERTY_CODABAR_START_END_DIGITS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORMATS
public static final String JSON_PROPERTY_FORMATS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GS1
public static final String JSON_PROPERTY_GS1
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PURE_BARCODE
public static final String JSON_PROPERTY_PURE_BARCODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESOLUTION
public static final String JSON_PROPERTY_RESOLUTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCAN_AREA
public static final String JSON_PROPERTY_SCAN_AREA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRY_HARDER
public static final String JSON_PROPERTY_TRY_HARDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UPC_EAN_EXTENSIONS
public static final String JSON_PROPERTY_UPC_EAN_EXTENSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowedLengths
public OperationBarcodeSelection allowedLengths(String allowedLengths)
-
getAllowedLengths
@Nullable public @Nullable String getAllowedLengths()
If this value is set, it will limit the allowed lengths for encoded values. In other words, barcodes with a length that is not listed will be ignored. (Example: \"13,8,25\")- Returns:
- allowedLengths
-
setAllowedLengths
public void setAllowedLengths(String allowedLengths)
-
barcode39CheckDigit
public OperationBarcodeSelection barcode39CheckDigit(Boolean barcode39CheckDigit)
-
getBarcode39CheckDigit
@Nullable public @Nullable Boolean getBarcode39CheckDigit()
If this value is set to \"true\", the system will assume that all recognized Code 39 barcodes contain a correct check digit.- Returns:
- barcode39CheckDigit
-
setBarcode39CheckDigit
public void setBarcode39CheckDigit(Boolean barcode39CheckDigit)
-
charset
public OperationBarcodeSelection charset(String charset)
-
getCharset
@Nullable public @Nullable String getCharset()
Used to specify the character set in which the barcode contents are stored.- Returns:
- charset
-
setCharset
public void setCharset(String charset)
-
codabarStartEndDigits
public OperationBarcodeSelection codabarStartEndDigits(Boolean codabarStartEndDigits)
-
getCodabarStartEndDigits
@Nullable public @Nullable Boolean getCodabarStartEndDigits()
If this value is set to \"true\", the start and stop symbols of recognized Codabar barcodes will be read instead of removed during recognition.- Returns:
- codabarStartEndDigits
-
setCodabarStartEndDigits
public void setCodabarStartEndDigits(Boolean codabarStartEndDigits)
-
formats
public OperationBarcodeSelection formats(String formats)
-
getFormats
@NotNull public @NotNull String getFormats()
Used to define the list of barcodes (comma-separated) that should be searched for. There must be at least one barcode format here; otherwise, no search will be run. The names are the same as those used in `<add>`, i.e., the following are the barcode names available: * qrcode * aztec * codabar * code128 * code39 * datamatrix * ean13 * ean8 * itf * pdf417 * upca- Returns:
- formats
-
setFormats
public void setFormats(String formats)
-
gs1
public OperationBarcodeSelection gs1(Boolean gs1)
-
getGs1
@Nullable public @Nullable Boolean getGs1()
If this value is set to \"true\", the system will assume that all recognized barcodes are GS1-compliant barcodes, and the way all processes behave and work will be adjusted accordingly (for instance, the way in which the FNC1 character is handled for Code 128)- Returns:
- gs1
-
setGs1
public void setGs1(Boolean gs1)
-
pages
public OperationBarcodeSelection pages(String pages)
-
getPages
@Nullable public @Nullable String getPages()
The page range within which barcodes should be scanned. Individual pages or a range of pages can be defined here. If the text is empty, the entire file will be exported (e.g.: \"1-10\" or \"1,2,5-10\")- Returns:
- pages
-
setPages
public void setPages(String pages)
-
pureBarcode
public OperationBarcodeSelection pureBarcode(Boolean pureBarcode)
-
getPureBarcode
@Nullable public @Nullable Boolean getPureBarcode()
If this value is set to \"true\", the system will assume that the source document being scanned (limited by `<scanArea>`) does not contain any elements other than the barcode. This option can speed up the recognition process significantly. If, however, this option is enabled and there are elements other than a barcode, recognition may fail completely.- Returns:
- pureBarcode
-
setPureBarcode
public void setPureBarcode(Boolean pureBarcode)
-
resolution
public OperationBarcodeSelection resolution(Integer resolution)
-
getResolution
@Nullable public @Nullable Integer getResolution()
Used to select the resolution for the recognition operation. Depending on the barcode's format and quality, higher or lower values may yield better results (in any case, higher values will slow down processing). minimum: 1- Returns:
- resolution
-
setResolution
public void setResolution(Integer resolution)
-
scanArea
public OperationBarcodeSelection scanArea(OperationRectangle scanArea)
-
getScanArea
@NotNull public @NotNull OperationRectangle getScanArea()
Get scanArea- Returns:
- scanArea
-
setScanArea
public void setScanArea(OperationRectangle scanArea)
-
tryHarder
public OperationBarcodeSelection tryHarder(Boolean tryHarder)
-
getTryHarder
@Nullable public @Nullable Boolean getTryHarder()
If this value is set to \"true\", more computing time will be invested in order to guarantee successful recognition. For example, the system will also scan for barcodes along the vertical axis.- Returns:
- tryHarder
-
setTryHarder
public void setTryHarder(Boolean tryHarder)
-
upcEanExtensions
public OperationBarcodeSelection upcEanExtensions(String upcEanExtensions)
-
getUpcEanExtensions
@Nullable public @Nullable String getUpcEanExtensions()
If this value is set, it will limit the allowed lengths for encoded EAN and UPC Extensions. In other words, barcodes with an Extension length that is not listed will be ignored. (Example: \"2,5\")- Returns:
- upcEanExtensions
-
setUpcEanExtensions
public void setUpcEanExtensions(String upcEanExtensions)
-
-