code: public String getMarkerText()
      {
          String text;
          if (styleType == CSSProperty.ListStyleType.UPPER_ALPHA)
              text = "" + ((char) (64 + (itemNumber % 24)));
          else if (styleType == CSSProperty.ListStyleType.LOWER_ALPHA)
              text = "" + ((char) (96 + (itemNumber % 24)));
          else if (styleType == CSSProperty.ListStyleType.UPPER_ROMAN)
              text = "" + binaryToRoman(itemNumber);
          else if (styleType == CSSProperty.ListStyleType.LOWER_ROMAN)
              text = "" + binaryToRoman(itemNumber).toLowerCase();
          else
              text = String.valueOf(itemNumber); // default decimal 
          return text + ". ";
      }
docs: Get ordered list item marker text depending on list-style-type property.
  
  @return item text or empty string for unordered list