Package com.itextpdf.kernel.numbering
Class EnglishAlphabetNumbering
java.lang.Object
com.itextpdf.kernel.numbering.EnglishAlphabetNumbering
This class is responsible for converting integer numbers to their English alphabet letter representations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final char[]
protected static final char[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toLatinAlphabetNumber
(int number, boolean upperCase) Converts the given number to its English alphabet string representation.static String
toLatinAlphabetNumberLowerCase
(int number) Converts the given number to its English alphabet lowercase string representation.static String
toLatinAlphabetNumberUpperCase
(int number) Converts the given number to its English alphabet uppercase string representation.
-
Field Details
-
ALPHABET_LOWERCASE
protected static final char[] ALPHABET_LOWERCASE -
ALPHABET_UPPERCASE
protected static final char[] ALPHABET_UPPERCASE -
ALPHABET_LENGTH
protected static final int ALPHABET_LENGTH- See Also:
-
-
Constructor Details
-
EnglishAlphabetNumbering
public EnglishAlphabetNumbering()
-
-
Method Details
-
toLatinAlphabetNumberLowerCase
Converts the given number to its English alphabet lowercase string representation. E.g. 1 will be converted to "a", 2 to "b", ..., 27 to "aa", and so on.- Parameters:
-
number
- the number greater than zero to be converted - Returns:
- English alphabet lowercase string representation of an integer
-
toLatinAlphabetNumberUpperCase
Converts the given number to its English alphabet uppercase string representation. E.g. 1 will be converted to "A", 2 to "B", ..., 27 to "AA", and so on.- Parameters:
-
number
- the number greater than zero to be converted - Returns:
- English alphabet uppercase string representation of an integer
-
toLatinAlphabetNumber
Converts the given number to its English alphabet string representation. E.g. forupperCase
set to false, 1 will be converted to "a", 2 to "b", ..., 27 to "aa", and so on.- Parameters:
-
number
- the number greater than zero to be converted -
upperCase
- whether to use uppercase or lowercase alphabet - Returns:
- English alphabet string representation of an integer
-