com.groupdocs.redaction.redactions

Class RedactionDescription



  • public class RedactionDescription
    extends Object

    Represents a single change action info that performed during redaction process.

    • Constructor Detail

      • RedactionDescription

        public RedactionDescription(RedactionType redactionType,
                            RedactionActionType actionType,
                            String originalText)

        Initializes a new instance of RedactionDescription class without replacement information.

        Parameters:
        redactionType - Type of data being redacted
        actionType - Action to be performed on these data
        originalText - Matched text, comment or annotation body
      • RedactionDescription

        public RedactionDescription(RedactionType redactionType,
                            RedactionActionType actionType,
                            String originalText,
                            TextReplacement replacement)

        Initializes a new instance of RedactionDescription class with replacement information.

        Parameters:
        redactionType - Type of data being redacted
        actionType - Action to be performed on these data
        originalText - Matched text, comment or annotation body
        replacement - Replacement text, matched text and its position within original string
    • Method Detail

      • getRedactionType

        public final RedactionType getRedactionType()

        Gets the type of document's data - text, metadata or annotations.

        Returns:
        The type of document's data - text, metadata or annotations.
      • getActionType

        public final RedactionActionType getActionType()

        Gets the redaction operation: replacement, cleanup or deletion.

        Returns:
        The redaction operation: replacement, cleanup or deletion.
      • getOriginalText

        public final String getOriginalText()

        Gets the matched text, if any expression is provided.

        Returns:
        The matched text, if any expression is provided.
      • getReplacement

        public final TextReplacement getReplacement()

        Gets the replacement information, can be null.

        Returns:
        The replacement information, can be null.