public class RedactionDescription extends Object
Represents a single change action info that performed during redaction process.
Constructor and Description |
---|
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 |
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.
|
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 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.
Copyright © 2019. All rights reserved.