Package com.itextpdf.commons.utils
Class PlaceHolderTextUtil
java.lang.Object
com.itextpdf.commons.utils.PlaceHolderTextUtil
This class is used to generate placeholder text for the examples and tests.
It is not used anywhere in the actual code.
This provides a better way than using Lorem Ipsum text as it is more readable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The enum Place holder text by. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPlaceHolderText
(PlaceHolderTextUtil.PlaceHolderTextBy by, int amount) Gets the placeholder text.private static String
getPlaceHolderTextByCharacters
(int amount) private static String
getPlaceHolderTextByWords
(int amount)
-
Field Details
-
TEMPLATE
- See Also:
-
-
Constructor Details
-
PlaceHolderTextUtil
private PlaceHolderTextUtil()
-
-
Method Details
-
getPlaceHolderText
Gets the placeholder text.- Parameters:
by
- if you want to get the placeholder text by words or by charactersamount
- the number of words or characters- Returns:
- the placeholder text
-
getPlaceHolderTextByWords
-
getPlaceHolderTextByCharacters
-