Class EnglishAlphabetNumbering

java.lang.Object
com.itextpdf.kernel.numbering.EnglishAlphabetNumbering

public class EnglishAlphabetNumbering extends Object
This class is responsible for converting integer numbers to their English alphabet letter representations.
  • 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

      public static String toLatinAlphabetNumberLowerCase (int number)
      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

      public static String toLatinAlphabetNumberUpperCase (int number)
      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

      public static String toLatinAlphabetNumber (int number, boolean upperCase)
      Converts the given number to its English alphabet string representation. E.g. for upperCase 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