com.groupdocs.redaction

Class RedactionDescription



  • public class RedactionDescription
    extends Object

    Describes in detail single change of the document during redaction

    • Constructor Detail

      • RedactionDescription

        public RedactionDescription(int redactionType,
                            int actionType,
                            String originalText)

        Creates new instance 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(int redactionType,
                            int actionType,
                            String originalText,
                            TextReplacement replacement)

        Creates new instance 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 int getRedactionType()

        Type of document's data - text, metadata or annotations

      • getActionType

        public final int getActionType()

        Redaction operation: replacement, cleanup or deletion

      • getOriginalText

        public final String getOriginalText()

        Matched text, if any expression is provided

      • getReplacement

        public final TextReplacement getReplacement()

        Replacement information, optional