Package com.logicaldoc.barcode
Class BarcodeParser
- java.lang.Object
-
- com.logicaldoc.barcode.BarcodeParser
-
public class BarcodeParser extends Object
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
Nested Classes Modifier and Type Class Description class
BarcodeParser.Token
A single token in the pattern string.
-
Constructor Summary
Constructors Constructor Description BarcodeParser(String barcode, com.logicaldoc.core.document.Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(String patterns)
Parses a comma separated list of patterns used to parse the barcode.
-
-
-
Constructor Detail
-
BarcodeParser
public BarcodeParser(String barcode, com.logicaldoc.core.document.Document document)
-
-
Method Detail
-
parse
public void parse(String patterns)
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
-
-