Class PdfConfigurationProcessor.Update

java.lang.Object
org.mapfish.print.processor.PdfConfigurationProcessor.Update
All Implemented Interfaces:
ConfigurationObject
Enclosing class:
PdfConfigurationProcessor

public static final class PdfConfigurationProcessor.Update extends Object implements ConfigurationObject
The object that defines how to update the PDFConfig (see !updatePdfConfig processor). [[examples=updatePdfMetadata]]
  • Constructor Details

    • Update

      public Update()
      Default constructor.
  • Method Details

    • validate

      public void validate(List<Throwable> validationErrors, Configuration configuration)
      Description copied from interface: ConfigurationObject
      validate that the configuration was correct.
      Specified by:
      validate in interface ConfigurationObject
      Parameters:
      validationErrors - a list to add any detected errors to.
      configuration - the containing configuration
    • setValueKey

      public void setValueKey(String valueKey)
      The key to use to look up the value in the values object. It can be a path that can reach into nested objects.

      Examples 1 a simple lookup key: "key" Example 2 a path. First part (before .) is the lookup key, the second part is the field name to load: "key.fieldName"

      Parameters:
      valueKey - the path or key for retrieving the value
    • setFormat

      public void setFormat(String format)
      The replacement format. It is a printf style format. The documentation is in the Formatter class (just google/bing java.util.Formatter).

      Example: "Report for %s"

      Parameters:
      format - the update format. There can only be a single value.