public class I18NAdapter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
I18NAdapter.LifeCycle |
| Modifier and Type | Method and Description |
|---|---|
<M> M |
addI18NMixin(Class<M> mixinType,
Locale locale) |
<M> Map<Locale,M> |
getI18NMixin(Class<M> mixinType) |
<M> M |
getI18NMixin(Class<M> mixinType,
Locale locale,
boolean create) |
<M> M |
getMixin(Class<M> mixinType,
boolean create) |
<M> Collection<Locale> |
removeI18NMixin(Class<M> mixinType) |
<M> void |
removeMixin(Class<M> mixinType) |
<M> Resolution<M> |
resolveI18NMixin(Class<M> mixinType,
Locale locale)
Resolve the mixin for the specified locale.
|
public <M> M getMixin(Class<M> mixinType, boolean create) throws NullPointerException
NullPointerExceptionpublic <M> void removeMixin(Class<M> mixinType) throws NullPointerException
NullPointerExceptionpublic <M> Resolution<M> resolveI18NMixin(Class<M> mixinType, Locale locale) throws NullPointerException
M - the mixin generic typemixinType - the expected mixin typelocale - the localeNullPointerException - if any argument is nullpublic <M> M getI18NMixin(Class<M> mixinType, Locale locale, boolean create) throws NullPointerException, IllegalArgumentException
public <M> Map<Locale,M> getI18NMixin(Class<M> mixinType) throws NullPointerException
NullPointerExceptionpublic <M> M addI18NMixin(Class<M> mixinType, Locale locale) throws NullPointerException, IllegalArgumentException
public <M> Collection<Locale> removeI18NMixin(Class<M> mixinType)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.