Class CopyrightSincePlaceholderPopulator
- java.lang.Object
-
- com.itextpdf.commons.actions.producer.CopyrightSincePlaceholderPopulator
-
- All Implemented Interfaces:
IPlaceholderPopulator
class CopyrightSincePlaceholderPopulator extends java.lang.Object implements IPlaceholderPopulator
Class is used to populatecopyrightSince
placeholder. The resulting string is a representation of the first year of copyright years range. Among all products involved into product creation the earliestcopyrightSince
year is picked as a resulting value.
-
-
Constructor Summary
Constructors Constructor Description CopyrightSincePlaceholderPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
populate(java.util.List<ConfirmedEventWrapper> events, java.lang.String parameter)
Builds a replacement for a placeholdercopyrightSince
in accordance with the registered events.
-
-
-
Method Detail
-
populate
public java.lang.String populate(java.util.List<ConfirmedEventWrapper> events, java.lang.String parameter)
Builds a replacement for a placeholdercopyrightSince
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
ascopyrightSince
as the placeholder is not configurable- Returns:
- the earliest copyright year
- Throws:
java.lang.IllegalArgumentException
- ifparameter
is notnull
-
-