Package io.scanbot.sdk.textpattern
Class DefaultContentValidator
- java.lang.Object
-
- io.scanbot.sdk.textpattern.ContentValidator
-
- io.scanbot.sdk.textpattern.DefaultContentValidator
-
public class DefaultContentValidator extends ContentValidator
Default content validator. Accepts only non-empty strings.
-
-
Constructor Summary
Constructors Constructor Description DefaultContentValidator()Constructs DefaultContentValidator with default parameters.DefaultContentValidator(java.lang.String allowedCharacters)Constructs DefaultContentValidator with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAllowedCharacters()Getter for allowedCharacters field.voidsetAllowedCharacters(java.lang.String allowedCharacters)Setter for allowedCharacters field.
-
-
-
Constructor Detail
-
DefaultContentValidator
public DefaultContentValidator(java.lang.String allowedCharacters)
Constructs DefaultContentValidator with the given params.- Parameters:
allowedCharacters- OCR whitelist. Empty string means no restriction. Default is ""
-
DefaultContentValidator
public DefaultContentValidator()
Constructs DefaultContentValidator with default parameters.
-
-
Method Detail
-
getAllowedCharacters
public java.lang.String getAllowedCharacters()
Getter for allowedCharacters field. See constructor documentation for more information about the field.- Returns:
- allowedCharacters
-
setAllowedCharacters
public void setAllowedCharacters(java.lang.String allowedCharacters)
Setter for allowedCharacters field. See constructor documentation for more information about the field.- Parameters:
allowedCharacters- Value to set.
-
-