public class RedactorSettings extends Object
Represents redaction settings, allowing to customize the redaction process.
Learn more
Constructor and Description |
---|
RedactorSettings()
Initializes a new instance of the RedactorSettings class.
|
RedactorSettings(ILogger logger)
Initializes a new instance of the RedactorSettings class with a given ILogger instance.
|
RedactorSettings(ILogger logger,
IRedactionCallback callback)
Initializes a new instance of the RedactorSettings class with given ILogger and IRedactionCallback instances.
|
RedactorSettings(ILogger logger,
IRedactionCallback callback,
IOcrConnector ocrConnector)
Initializes a new instance of the RedactorSettings class with given ILogger, IRedactionCallback and IOcrConnector instances.
|
RedactorSettings(IOcrConnector ocrConnector)
Initializes a new instance of the RedactorSettings class with a given IOcrConnector instance.
|
RedactorSettings(IRedactionCallback callback)
Initializes a new instance of the RedactorSettings class with a given IRedactionCallback instance.
|
Modifier and Type | Method and Description |
---|---|
ILogger |
getLogger()
Gets an instance of a class, implementing
ILogger , that is used for logging events and errors. |
IOcrConnector |
getOcrConnector()
Gets an instance of a class, implementing
IOcrConnector interface. |
IRedactionCallback |
getRedactionCallback()
Gets an instance of a class, implementing
IRedactionCallback . |
void |
setLogger(ILogger value)
Sets an instance of a class, implementing
ILogger , that is used for logging events and errors. |
void |
setOcrConnector(IOcrConnector value)
Sets an instance of a class, implementing
IOcrConnector interface. |
void |
setRedactionCallback(IRedactionCallback value)
Sets an instance of a class, implementing
IRedactionCallback . |
public RedactorSettings()
Initializes a new instance of the RedactorSettings class.
public RedactorSettings(ILogger logger)
Initializes a new instance of the RedactorSettings class with a given ILogger instance.
logger
- An instance of a class, implementing ILogger interfacepublic RedactorSettings(IRedactionCallback callback)
Initializes a new instance of the RedactorSettings class with a given IRedactionCallback instance.
callback
- An instance of a class, implementing IRedactionCallbck interfacepublic RedactorSettings(IOcrConnector ocrConnector)
Initializes a new instance of the RedactorSettings class with a given IOcrConnector instance.
ocrConnector
- A valid implementation of IOcrConnector interfacepublic RedactorSettings(ILogger logger, IRedactionCallback callback)
Initializes a new instance of the RedactorSettings class with given ILogger and IRedactionCallback instances.
logger
- An instance of a class, implementing ILogger interfacecallback
- An instance of a class, implementing IRedactionCallbck interfacepublic RedactorSettings(ILogger logger, IRedactionCallback callback, IOcrConnector ocrConnector)
Initializes a new instance of the RedactorSettings class with given ILogger, IRedactionCallback and IOcrConnector instances.
logger
- An instance of a class, implementing ILogger interfacecallback
- An instance of a class, implementing IRedactionCallbck interfaceocrConnector
- An instance of IOcrConnector interface implementation. Can be nullpublic final ILogger getLogger()
Gets an instance of a class, implementing ILogger
, that is used for logging events and errors.
ILogger
, that is used for logging events and errors.public final void setLogger(ILogger value)
Sets an instance of a class, implementing ILogger
, that is used for logging events and errors.
value
- An instance of a class, implementing ILogger
, that is used for logging events and errors.public final IRedactionCallback getRedactionCallback()
Gets an instance of a class, implementing IRedactionCallback
.
IRedactionCallback
.public final void setRedactionCallback(IRedactionCallback value)
Sets an instance of a class, implementing IRedactionCallback
.
value
- An instance of a class, implementing IRedactionCallback
.public final IOcrConnector getOcrConnector()
Gets an instance of a class, implementing IOcrConnector
interface.
IOcrConnector
interface.public final void setOcrConnector(IOcrConnector value)
Sets an instance of a class, implementing IOcrConnector
interface.
value
- An instance of a class, implementing IOcrConnector
interface.