Package com.logicaldoc.barcode
Class BarcodeParser
java.lang.Object
com.logicaldoc.barcode.BarcodeParser
This is the parser that using a pattern is able to extract documents metadata
from the given barcode.
- Since:
- 6.1
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBarcodeParser
(String barcode, com.logicaldoc.core.document.Document document) -
Method Summary
-
Constructor Details
-
BarcodeParser
-
-
Method Details
-
parse
Parses a comma separated list of patterns used to parse the barcode. Each pattern is composed by tokens, each one referencing an attribute name: <attributeName(:size)>
Example patterns: <title:8><date><author>, <customId><sourcetype>- Parameters:
patterns
- the comma separated list of patterns
-