Class BundleValidation

java.lang.Object
org.nuiton.i18n.plugin.bundle.BundleValidation

public class BundleValidation
extends java.lang.Object
The validation result of a validation check over multiple bundles.
Since:
3.5
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.Map<java.util.Locale,​java.util.SortedSet<java.lang.String>> keysMissingValues
    to keep all none translated i18n keys by locale.
    protected com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> keysPerLocale
    Store all keys declared for each Locale.
    protected com.google.common.collect.Ordering<java.util.Locale> localeOrdering
    Sort locales according to the order used in the POM file.
    protected com.google.common.collect.ImmutableSortedSet<java.util.Locale> locales  
  • Constructor Summary

    Constructors 
    Constructor Description
    BundleValidation​(java.util.Locale[] locales)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.util.Locale,​java.util.SortedSet<java.lang.String>> getKeysMissingValues()  
    com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> getKeysPerLocale()  
    com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> getMissingKeysPerLocale()  
    boolean isAnyKeyMissingInBundle()  
    boolean isAnyKeyMissingValue()  
    boolean isFail()  
    protected com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> newEmptyMapForBundles()
    Factory method for a method suitable to deterministically store bundles.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • locales

      protected com.google.common.collect.ImmutableSortedSet<java.util.Locale> locales
    • keysMissingValues

      protected java.util.Map<java.util.Locale,​java.util.SortedSet<java.lang.String>> keysMissingValues
      to keep all none translated i18n keys by locale.
    • keysPerLocale

      protected com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> keysPerLocale
      Store all keys declared for each Locale.
    • localeOrdering

      protected com.google.common.collect.Ordering<java.util.Locale> localeOrdering
      Sort locales according to the order used in the POM file.
  • Constructor Details

  • Method Details

    • getKeysMissingValues

      public java.util.Map<java.util.Locale,​java.util.SortedSet<java.lang.String>> getKeysMissingValues()
    • getKeysPerLocale

      public com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> getKeysPerLocale()
    • getMissingKeysPerLocale

      public com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> getMissingKeysPerLocale()
    • isAnyKeyMissingInBundle

      public boolean isAnyKeyMissingInBundle()
    • isAnyKeyMissingValue

      public boolean isAnyKeyMissingValue()
    • isFail

      public boolean isFail()
    • newEmptyMapForBundles

      protected com.google.common.collect.SortedSetMultimap<java.util.Locale,​java.lang.String> newEmptyMapForBundles()
      Factory method for a method suitable to deterministically store bundles.