Class TinConfig
-
- All Implemented Interfaces:
public class TinConfig
Configuration for scanning TIN numbers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
TinConfig.ScanMode
Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').
public enum
TinConfig.UpsideDownMode
Sets whether the text shall also be scanned upside-down.
-
Field Summary
Fields Modifier and Type Field Description public TinConfig.ScanMode
scanMode
public TinConfig.UpsideDownMode
upsideDownMode
public Integer
minConfidence
public Boolean
validateProductionDate
public String
validationRegex
-
Constructor Summary
Constructors Constructor Description TinConfig()
-
Method Summary
Modifier and Type Method Description TinConfig.ScanMode
getScanMode()
Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). void
setScanMode(TinConfig.ScanMode scanMode)
Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). TinConfig.UpsideDownMode
getUpsideDownMode()
Sets whether the text shall also be scanned upside-down. void
setUpsideDownMode(TinConfig.UpsideDownMode upsideDownMode)
Sets whether the text shall also be scanned upside-down. Integer
getMinConfidence()
Sets a minimum confidence which has to be reached in order to trigger a scan result. void
setMinConfidence(Integer minConfidence)
Sets a minimum confidence which has to be reached in order to trigger a scan result. Boolean
getValidateProductionDate()
Sets whether the production date validation is enabled. void
setValidateProductionDate(Boolean validateProductionDate)
Sets whether the production date validation is enabled. String
getValidationRegex()
Sets a regular expression which the TIN text needs to match in order to trigger a scan result. void
setValidationRegex(String validationRegex)
Sets a regular expression which the TIN text needs to match in order to trigger a scan result. String
toString()
int
hashCode()
boolean
equals(Object other)
-
-
Method Detail
-
getScanMode
TinConfig.ScanMode getScanMode()
Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').
-
setScanMode
void setScanMode(TinConfig.ScanMode scanMode)
Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').
-
getUpsideDownMode
TinConfig.UpsideDownMode getUpsideDownMode()
Sets whether the text shall also be scanned upside-down.
-
setUpsideDownMode
void setUpsideDownMode(TinConfig.UpsideDownMode upsideDownMode)
Sets whether the text shall also be scanned upside-down.
-
getMinConfidence
Integer getMinConfidence()
Sets a minimum confidence which has to be reached in order to trigger a scan result.
-
setMinConfidence
void setMinConfidence(Integer minConfidence)
Sets a minimum confidence which has to be reached in order to trigger a scan result.
-
getValidateProductionDate
Boolean getValidateProductionDate()
Sets whether the production date validation is enabled. If it is set to false the scan result is also returned for invalid and missing dates.
-
setValidateProductionDate
void setValidateProductionDate(Boolean validateProductionDate)
Sets whether the production date validation is enabled. If it is set to false the scan result is also returned for invalid and missing dates.
-
getValidationRegex
String getValidationRegex()
Sets a regular expression which the TIN text needs to match in order to trigger a scan result.
-
setValidationRegex
void setValidationRegex(String validationRegex)
Sets a regular expression which the TIN text needs to match in order to trigger a scan result.
-
hashCode
int hashCode()
-
-
-
-