Class TinConfig
-
- All Implemented Interfaces:
-
java.io.Serializable
public class TinConfig implements Serializable
Configuration for scanning TIN numbers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumTinConfig.ScanModeSets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT').
public enumTinConfig.UpsideDownModeSets whether the text shall also be scanned upside-down.
-
Field Summary
Fields Modifier and Type Field Description public TinConfig.ScanModescanModepublic TinConfig.UpsideDownModeupsideDownModepublic IntegerminConfidencepublic BooleanvalidateProductionDatepublic StringvalidationRegex
-
Constructor Summary
Constructors Constructor Description TinConfig()
-
Method Summary
Modifier and Type Method Description TinConfig.ScanModegetScanMode()Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). voidsetScanMode(TinConfig.ScanMode scanMode)Sets the mode to scan universal TIN numbers ('UNIVERSAL') or TIN numbers of any length starting with DOT ('DOT'). TinConfig.UpsideDownModegetUpsideDownMode()Sets whether the text shall also be scanned upside-down. voidsetUpsideDownMode(TinConfig.UpsideDownMode upsideDownMode)Sets whether the text shall also be scanned upside-down. IntegergetMinConfidence()Sets a minimum confidence which has to be reached in order to trigger a scan result. voidsetMinConfidence(Integer minConfidence)Sets a minimum confidence which has to be reached in order to trigger a scan result. BooleangetValidateProductionDate()Sets whether the production date validation is enabled. voidsetValidateProductionDate(Boolean validateProductionDate)Sets whether the production date validation is enabled. StringgetValidationRegex()Sets a regular expression which the TIN text needs to match in order to trigger a scan result. voidsetValidationRegex(String validationRegex)Sets a regular expression which the TIN text needs to match in order to trigger a scan result. StringtoString()inthashCode()booleanequals(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()
-
-
-
-