Enum EPLPlaceholder

java.lang.Object
java.lang.Enum<EPLPlaceholder>
com.helger.pdflayout.base.EPLPlaceholder
All Implemented Interfaces:
Serializable, Comparable<EPLPlaceholder>, java.lang.constant.Constable

public enum EPLPlaceholder extends Enum<EPLPlaceholder>
Contains a list of supported textual placeholders to be replaced when creating a PDF.
Author:
Philip Helger
  • Enum Constant Details

    • PAGESET_INDEX

      public static final EPLPlaceholder PAGESET_INDEX
      0-based index of current pageset
    • PAGESET_NUMBER

      public static final EPLPlaceholder PAGESET_NUMBER
      1-based number of current pageset (same as pageset-index+1)
    • PAGESET_COUNT

      public static final EPLPlaceholder PAGESET_COUNT
      total number of pagesets
    • PAGESET_PAGE_INDEX

      public static final EPLPlaceholder PAGESET_PAGE_INDEX
      0-based index of page in current pageset
    • PAGESET_PAGE_NUMBER

      public static final EPLPlaceholder PAGESET_PAGE_NUMBER
      1-based index of page in current pageset
    • PAGESET_PAGE_COUNT

      public static final EPLPlaceholder PAGESET_PAGE_COUNT
      count of pages in current pageset
    • TOTAL_PAGE_INDEX

      public static final EPLPlaceholder TOTAL_PAGE_INDEX
      overall 0-based page index
    • TOTAL_PAGE_NUMBER

      public static final EPLPlaceholder TOTAL_PAGE_NUMBER
      overall 1-based page number
    • TOTAL_PAGE_COUNT

      public static final EPLPlaceholder TOTAL_PAGE_COUNT
      total page count
  • Method Details

    • values

      public static EPLPlaceholder[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EPLPlaceholder valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getVariable

      @Nonnull @Nonempty public String getVariable()
      Returns:
      The name of the variable, starting with "${" and ending with "}". Neither null nor empty.
    • getEstimatedCharCount

      @Nonnegative public int getEstimatedCharCount()
      Returns:
      The number of estimated characters in the final document. Always > 0.
    • getEstimatedPrepareText

      @Nonnull @Nonempty public String getEstimatedPrepareText()
      Returns:
      The estimated replacement text, using getEstimatedCharCount() as the basis.
    • getFromVariableOrNull

      @Nullable public static EPLPlaceholder getFromVariableOrNull(@Nullable String sVariable)
    • getEstimationReplacements

      @Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsMap<String,String> getEstimationReplacements()