S - self bound typepublic abstract class StaticPropertyAccessor<S>
extends java.lang.Object
Properties manually implemented types
with static locale. Provides a handful of protected helper methods.| Constructor and Description |
|---|
StaticPropertyAccessor(java.util.Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
format(java.lang.String string,
java.lang.Object... arguments) |
protected Localized<java.lang.String> |
localize(java.lang.String string,
java.lang.Object... arguments) |
protected <T> Localized<T> |
localize(T property) |
public StaticPropertyAccessor(java.util.Locale locale)
locale - the static locale for the textprotected Localized<java.lang.String> localize(java.lang.String string, java.lang.Object... arguments)
string - the string to create a localized view ofarguments - the arguments to substitute into the stringLocalized instance over the given string and the static
localeprotected java.lang.String format(java.lang.String string,
java.lang.Object... arguments)