Class VinConfig

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class VinConfig
     implements Serializable
                        

    Configuration for scanning vehicle identification numbers (VIN)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      VinConfig()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getValidationRegex() Sets a regular expression which the scanned text needs to match in order to trigger a scan result.
      void setValidationRegex(String validationRegex) Sets a regular expression which the scanned text needs to match in order to trigger a scan result.
      String getCharWhitelist() Restricts the scanner to a set of characters to be detected.
      void setCharWhitelist(String charWhitelist) Restricts the scanner to a set of characters to be detected.
      Boolean getValidateCheckDigit() Setting this to 'true' will enforce checking the check digit and only return results if it is correct.
      void setValidateCheckDigit(Boolean validateCheckDigit) Setting this to 'true' will enforce checking the check digit and only return results if it is correct.
      String toString()
      int hashCode()
      boolean equals(Object other)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VinConfig

        VinConfig()
    • Method Detail

      • getValidationRegex

         String getValidationRegex()

        Sets a regular expression which the scanned text needs to match in order to trigger a scan result.

      • setValidationRegex

         void setValidationRegex(String validationRegex)

        Sets a regular expression which the scanned text needs to match in order to trigger a scan result.

      • setCharWhitelist

         void setCharWhitelist(String charWhitelist)

        Restricts the scanner to a set of characters to be detected.

      • getValidateCheckDigit

         Boolean getValidateCheckDigit()

        Setting this to 'true' will enforce checking the check digit and only return results if it is correct.

      • setValidateCheckDigit

         void setValidateCheckDigit(Boolean validateCheckDigit)

        Setting this to 'true' will enforce checking the check digit and only return results if it is correct.