public class RedactionDescription extends Object
Represents a single change action info that performed during redaction process.
Learn more
Constructor and Description |
---|
RedactionDescription(RedactionType redactionType,
RedactionActionType actionType,
RegionReplacementOptions imageAreaReplacement,
String imageDetails)
Initializes a new instance of RedactionDescription class with image area replacement information.
|
RedactionDescription(RedactionType redactionType,
RedactionActionType actionType,
String originalText)
Initializes a new instance of RedactionDescription class without replacement information.
|
RedactionDescription(RedactionType redactionType,
RedactionActionType actionType,
String originalText,
TextReplacement replacement)
Initializes a new instance of RedactionDescription class with replacement information.
|
Modifier and Type | Method and Description |
---|---|
RedactionActionType |
getActionType()
Gets the redaction operation: replacement, cleanup or deletion.
|
String |
getDetails()
Gets an optional details information for the item being redacted.
|
RegionReplacementOptions |
getImageAreaReplacement()
Gets the replacement information for image area redactions, returns null for textual redactions.
|
String |
getOriginalText()
Gets the matched text, if any expression is provided.
|
RedactionType |
getRedactionType()
Gets the type of document's data - text, metadata or annotations.
|
TextReplacement |
getReplacement()
Gets the replacement information, can be null.
|
void |
setDetails(String value)
Sets an optional details information for the item being redacted.
|
public RedactionDescription(RedactionType redactionType, RedactionActionType actionType, String originalText)
Initializes a new instance of RedactionDescription class without replacement information.
redactionType
- Type of data being redactedactionType
- Action to be performed on these dataoriginalText
- Matched text, comment or annotation bodypublic RedactionDescription(RedactionType redactionType, RedactionActionType actionType, String originalText, TextReplacement replacement)
Initializes a new instance of RedactionDescription class with replacement information.
redactionType
- Type of data being redactedactionType
- Action to be performed on these dataoriginalText
- Matched text, comment or annotation bodyreplacement
- Replacement text, matched text and its position within original stringpublic RedactionDescription(RedactionType redactionType, RedactionActionType actionType, RegionReplacementOptions imageAreaReplacement, String imageDetails)
Initializes a new instance of RedactionDescription class with image area replacement information.
redactionType
- Type of data being redactedactionType
- Action to be performed on these dataimageAreaReplacement
- Image area replacement informationimageDetails
- Image textual description, by default it is String.Emptypublic final RedactionType getRedactionType()
Gets the type of document's data - text, metadata or annotations.
public final RedactionActionType getActionType()
Gets the redaction operation: replacement, cleanup or deletion.
public final String getOriginalText()
Gets the matched text, if any expression is provided.
public final TextReplacement getReplacement()
Gets the replacement information, can be null.
public final RegionReplacementOptions getImageAreaReplacement()
Gets the replacement information for image area redactions, returns null for textual redactions.
public final String getDetails()
Gets an optional details information for the item being redacted.
public final void setDetails(String value)
Sets an optional details information for the item being redacted.
value
- An optional details information for the item being redacted.