Class AbstractSurefireReport.CustomI18N

java.lang.Object
org.apache.maven.plugins.surefire.report.AbstractSurefireReport.CustomI18N
All Implemented Interfaces:
org.codehaus.plexus.i18n.I18N
Enclosing class:
AbstractSurefireReport

private static class AbstractSurefireReport.CustomI18N extends Object implements org.codehaus.plexus.i18n.I18N
  • Field Details

    • project

      private final org.apache.maven.project.MavenProject project
    • settings

      private final org.apache.maven.settings.Settings settings
    • bundleName

      private final String bundleName
    • locale

      private final Locale locale
    • i18nOriginal

      private final org.codehaus.plexus.i18n.I18N i18nOriginal
    • bundle

      private ResourceBundle bundle
    • NO_ARGS

      private static final Object[] NO_ARGS
  • Constructor Details

    • CustomI18N

      CustomI18N(org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, File customBundleFile, Locale locale, org.codehaus.plexus.i18n.I18N i18nOriginal)
  • Method Details

    • getDefaultLanguage

      public String getDefaultLanguage()
      Specified by:
      getDefaultLanguage in interface org.codehaus.plexus.i18n.I18N
    • getDefaultCountry

      public String getDefaultCountry()
      Specified by:
      getDefaultCountry in interface org.codehaus.plexus.i18n.I18N
    • getDefaultBundleName

      public String getDefaultBundleName()
      Specified by:
      getDefaultBundleName in interface org.codehaus.plexus.i18n.I18N
    • getBundleNames

      public String[] getBundleNames()
      Specified by:
      getBundleNames in interface org.codehaus.plexus.i18n.I18N
    • getBundle

      public ResourceBundle getBundle()
      Specified by:
      getBundle in interface org.codehaus.plexus.i18n.I18N
    • getBundle

      public ResourceBundle getBundle(String bundleName)
      Specified by:
      getBundle in interface org.codehaus.plexus.i18n.I18N
    • getBundle

      public ResourceBundle getBundle(String bundleName, String languageHeader)
      Specified by:
      getBundle in interface org.codehaus.plexus.i18n.I18N
    • getBundle

      public ResourceBundle getBundle(String bundleName, Locale locale)
      Specified by:
      getBundle in interface org.codehaus.plexus.i18n.I18N
    • getLocale

      public Locale getLocale(String languageHeader)
      Specified by:
      getLocale in interface org.codehaus.plexus.i18n.I18N
    • getString

      public String getString(String key)
      Specified by:
      getString in interface org.codehaus.plexus.i18n.I18N
    • getString

      public String getString(String key, Locale locale)
      Specified by:
      getString in interface org.codehaus.plexus.i18n.I18N
    • getString

      public String getString(String bundleName, Locale locale, String key)
      Specified by:
      getString in interface org.codehaus.plexus.i18n.I18N
    • format

      public String format(String key, Object arg1)
      Specified by:
      format in interface org.codehaus.plexus.i18n.I18N
    • format

      public String format(String key, Object arg1, Object arg2)
      Specified by:
      format in interface org.codehaus.plexus.i18n.I18N
    • format

      public String format(String bundleName, Locale locale, String key, Object arg1)
      Specified by:
      format in interface org.codehaus.plexus.i18n.I18N
    • format

      public String format(String bundleName, Locale locale, String key, Object arg1, Object arg2)
      Specified by:
      format in interface org.codehaus.plexus.i18n.I18N
    • format

      public String format(String bundleName, Locale locale, String key, Object[] args)
      Specified by:
      format in interface org.codehaus.plexus.i18n.I18N
    • getStringOrNull

      private String getStringOrNull(ResourceBundle rb, String key)