Class CopyrightToPlaceholderPopulator
java.lang.Object
com.itextpdf.commons.actions.producer.CopyrightToPlaceholderPopulator
- All Implemented Interfaces:
IPlaceholderPopulator
Class is used to populate
copyrightTo
placeholder. The resulting string is a
representation of the last year of copyright years range. Among all products involved into
product creation the latest copyrightTo
year is picked as a resulting value-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpopulate
(List<ConfirmedEventWrapper> events, String parameter) Builds a replacement for a placeholdercopyrightTo
in accordance with the registered events.
-
Constructor Details
-
CopyrightToPlaceholderPopulator
public CopyrightToPlaceholderPopulator()
-
-
Method Details
-
populate
Builds a replacement for a placeholdercopyrightTo
in accordance with the registered events.- Specified by:
populate
in interfaceIPlaceholderPopulator
- 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 byProducerBuilder
without calling anyIPlaceholderPopulator
parameter
- is a parameter for the placeholder. It should benull
ascopyrightTo
as the placeholder is not configurable- Returns:
- the latest copyright year
- Throws:
IllegalArgumentException
- ifparameter
is notnull
-