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 
    A single token in the pattern string.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BarcodeParser(String barcode, com.logicaldoc.core.document.Document document)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    parse(String patterns)
    Parses a comma separated list of patterns used to parse the barcode.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BarcodeParser

      public BarcodeParser(String barcode, com.logicaldoc.core.document.Document document)
  • Method Details

    • 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