Class CopyrightSincePlaceholderPopulator

java.lang.Object
com.itextpdf.commons.actions.producer.CopyrightSincePlaceholderPopulator
All Implemented Interfaces:
IPlaceholderPopulator

class CopyrightSincePlaceholderPopulator extends Object implements IPlaceholderPopulator
Class is used to populate copyrightSince placeholder. The resulting string is a representation of the first year of copyright years range. Among all products involved into product creation the earliest copyrightSince year is picked as a resulting value.
  • Constructor Details

    • CopyrightSincePlaceholderPopulator

      public CopyrightSincePlaceholderPopulator()
  • Method Details

    • populate

      public String populate(List<ConfirmedEventWrapper> events, String parameter)
      Builds a replacement for a placeholder copyrightSince in accordance with the registered events.
      Specified by:
      populate in interface IPlaceholderPopulator
      Parameters:
      events - is a list of event involved into document processing. It is expected that it is not empty as such cases should be handled by ProducerBuilder without calling any IPlaceholderPopulator
      parameter - is a parameter for the placeholder. It should be null as copyrightSince as the placeholder is not configurable
      Returns:
      the earliest copyright year
      Throws:
      IllegalArgumentException - if parameter is not null