com.groupdocs.redaction.redactions

Class TextReplacement



  • public class TextReplacement
    extends Object

    Represents a textual replacement information.

    • Constructor Detail

      • TextReplacement

        public TextReplacement(int index,
                       String original,
                       String replacement)

        Initializes a new instance of TextReplacement class.

        Parameters:
        index - Index of a matched text within source string
        original - Original matched string
        replacement - String, replacing OriginalText in source string
    • Method Detail

      • getIndex

        public final int getIndex()

        Gets an index of the matched text within source string.

        Returns:
        An index of the matched text within source string.
      • getOriginalText

        public final String getOriginalText()

        Gets the original matched string.

        Returns:
        The original matched string.
      • getReplacement

        public final String getReplacement()

        Gets the string, replacing OriginalText.

        Returns:
        The string, replacing OriginalText.