org.zeroexchange.dao.i18n
Class LocalizationUtils

java.lang.Object
  extended by org.zeroexchange.dao.i18n.LocalizationUtils

public abstract class LocalizationUtils
extends Object

Author:
black

Nested Class Summary
static interface LocalizationUtils.LocalizationCallback<T>
          Localized value callback.
 
Constructor Summary
LocalizationUtils()
           
 
Method Summary
static
<T> T
iterateLocales(Class stringsClass, LocalizationUtils.LocalizationCallback<T> localizationCallback)
           
static
<T> T
iterateLocalizations(Strings localizedValues, LocalizationUtils.LocalizationCallback<T> localizationCallback)
           
static void setValue(Strings persistentLocalization, String value, String language)
           
static Collection<LocalizedValue> toLocalizedValues(Strings persistentString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizationUtils

public LocalizationUtils()
Method Detail

toLocalizedValues

public static Collection<LocalizedValue> toLocalizedValues(Strings persistentString)

iterateLocalizations

public static <T> T iterateLocalizations(Strings localizedValues,
                                         LocalizationUtils.LocalizationCallback<T> localizationCallback)

setValue

public static void setValue(Strings persistentLocalization,
                            String value,
                            String language)

iterateLocales

public static <T> T iterateLocales(Class stringsClass,
                                   LocalizationUtils.LocalizationCallback<T> localizationCallback)


Copyright © 2013. All Rights Reserved.