Package com.helger.pdflayout.base
Enum EPLPlaceholder
- All Implemented Interfaces:
Serializable,Comparable<EPLPlaceholder>,java.lang.constant.Constable
Contains a list of supported textual placeholders to be replaced when
creating a PDF.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiontotal number of pagesets0-based index of current pageset1-based number of current pageset (same as pageset-index+1)count of pages in current pageset0-based index of page in current pageset1-based index of page in current pagesettotal page countoverall 0-based page indexoverall 1-based page number -
Method Summary
Modifier and TypeMethodDescriptionintstatic EPLPlaceholdergetFromVariableOrNull(String sVariable) static EPLPlaceholderReturns the enum constant of this type with the specified name.static EPLPlaceholder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PAGESET_INDEX
0-based index of current pageset -
PAGESET_NUMBER
1-based number of current pageset (same as pageset-index+1) -
PAGESET_COUNT
total number of pagesets -
PAGESET_PAGE_INDEX
0-based index of page in current pageset -
PAGESET_PAGE_NUMBER
1-based index of page in current pageset -
PAGESET_PAGE_COUNT
count of pages in current pageset -
TOTAL_PAGE_INDEX
overall 0-based page index -
TOTAL_PAGE_NUMBER
overall 1-based page number -
TOTAL_PAGE_COUNT
total page count
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getVariable
- Returns:
- The name of the variable, starting with "${" and ending with "}".
Neither
nullnor empty.
-
getEstimatedCharCount
- Returns:
- The number of estimated characters in the final document. Always > 0.
-
getEstimatedPrepareText
- Returns:
- The estimated replacement text, using
getEstimatedCharCount()as the basis.
-
getFromVariableOrNull
-
getEstimationReplacements
-