Class Numberer_he

  • All Implemented Interfaces:

    public class Numberer_he
    extends Numberer_en
    Class Numberer_he does number formatting for language="he" (Hebrew). This supports the xsl:number element.
    • Constructor Detail

      • Numberer_he

        public Numberer_he()
    • Method Detail

      • format

        public java.lang.String format​(long number,
                                       UnicodeString picture,
                                       NumericGroupFormatter numGroupFormatter,
                                       java.lang.String letterValue,
                                       java.lang.String ordinal)
        Format a number into a string
        Specified by:
        format in interface Numberer
        format in class AbstractNumberer
        number - The number to be formatted
        picture - The format token. This is a single component of the format attribute of xsl:number, e.g. "1", "01", "i", or "a"
        numGroupFormatter - object contains separators to appear between groups of digits
        letterValue - The letter-value specified to xsl:number: "alphabetic" or "traditional". Can also be an empty string or null.
        ordinal - The value of the ordinal attribute specified to xsl:number The value "yes" indicates that ordinal numbers should be used; "" or null indicates that cardinal numbers
        the formatted number. Note that no errors are reported; if the request is invalid, the number is formatted as if the string() function were used.
      • toTraditionalSequence

        protected java.lang.String toTraditionalSequence​(long number,
                                                         java.lang.String groupSeparator)
        Convert a number to traditional Hebrew representation. All parameters are the same as for format()
        number - the number to be formatted
        groupSeparator - the grouping separator, if required (may be null)
        The number in traditional Hebrew. The result for numbers above 9999 is not really well-defined. Neither is 0.