T
- the type of Object this I18nKeyGenerator
generates keys for.public interface I18nKeyGenerator<T>
I18nKeyGenerator
is responsible for deriving i18n keys for any given instance of T.AbstractI18nKeyGenerator
Modifier and Type | Method and Description |
---|---|
String[] |
keysFor(String undecoratedResult,
T object,
AnnotatedElement el)
Generates the possible keys for the given
|
String |
messageBundleNameFor(T object)
If
|
String[] keysFor(String undecoratedResult, T object, AnnotatedElement el)
undecoratedResult
- the value returned by the undecorated underlying method call. It is generally expected
that this value will be part of the returned keys, such that an object with an explicitly configured key or label
will be translated using that value rather than derived keys.el
- the element being translated - typically a Method
instance.Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.