Package org.nuiton.i18n.plugin.bundle
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>>keysMissingValuesto keep all none translated i18n keys by locale.protected com.google.common.collect.SortedSetMultimap<java.util.Locale,java.lang.String>keysPerLocaleStore all keys declared for eachLocale.protected com.google.common.collect.Ordering<java.util.Locale>localeOrderingSort 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()booleanisAnyKeyMissingInBundle()booleanisAnyKeyMissingValue()booleanisFail()protected com.google.common.collect.SortedSetMultimap<java.util.Locale,java.lang.String>newEmptyMapForBundles()Factory method for a method suitable to deterministically store bundles.
-
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>> keysMissingValuesto keep all none translated i18n keys by locale. -
keysPerLocale
protected com.google.common.collect.SortedSetMultimap<java.util.Locale,java.lang.String> keysPerLocaleStore all keys declared for eachLocale. -
localeOrdering
protected com.google.common.collect.Ordering<java.util.Locale> localeOrderingSort locales according to the order used in the POM file.
-
-
Constructor Details
-
BundleValidation
public BundleValidation(java.util.Locale[] locales)
-
-
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.
-