Class 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
    • 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