Class ICUNumberer_de

  • All Implemented Interfaces:
    Numberer

    public class ICUNumberer_de
    extends ICUNumbererPE
    A numberer for German using the ICU features, which supports variable ordinal suffixing, for example '-en', '-es'
    • Constructor Detail

      • ICUNumberer_de

        public ICUNumberer_de()
    • Method Detail

      • config

        public void config​(java.util.Locale locale,
                           java.lang.String privateUseExtension,
                           Configuration config)
        Description copied from class: ICUNumbererPE
        Configure an ICU numberer. This includes possibly substituting a default locale if that requested isn't supported.
        Overrides:
        config in class ICUNumbererPE
        Parameters:
        locale - the locale to use
        privateUseExtension - the language code extension used to denote required numbering
        config - the system Configuration
      • postProcessOrdinal

        public java.lang.String postProcessOrdinal​(java.lang.String result,
                                                   java.lang.String ordinalParam)
        Replace trailing 'e' on German ordinals with the post-hyphen suffix, e.g. '-en'
        Overrides:
        postProcessOrdinal in class ICUNumbererPE
        Parameters:
        result - the raw result as delivered by ICU
        ordinalParam - the requested ordinal form, e.g. "-er" or "-es"
        Returns:
        New ordinal as words, with appropriate suffix