Class DefaultMessageDecorator

java.lang.Object
com.itextpdf.pdfoptimizer.report.decorator.DefaultMessageDecorator
All Implemented Interfaces:
IMessageDecorator
Direct Known Subclasses:
DefaultReportDecorator

public class DefaultMessageDecorator extends Object implements IMessageDecorator
The class is responsible for building string representation of the ReportMessage according to the following pattern: [SEVERITY] Location: Message.
  • Constructor Details

    • DefaultMessageDecorator

      public DefaultMessageDecorator()
  • Method Details

    • decorateMessage

      public String decorateMessage (ReportMessage message)
      Displays severity of the message, its source and its content.
      Specified by:
      decorateMessage in interface IMessageDecorator
      Parameters:
      message - is a message of the optimization report
      Returns:
      string representation of the message