public class NullKeyGenerator extends Object implements I18nKeyGenerator
I18nKeyGenerator
which essentially just returns the undecorated value,
and warns that no I18nKeyGenerator was set for the given object.Constructor and Description |
---|
NullKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
String[] |
keysFor(String undecoratedResult,
Object object,
AnnotatedElement el)
Generates the possible keys for the given
|
String |
messageBundleNameFor(Object object)
If
|
public String[] keysFor(String undecoratedResult, Object object, AnnotatedElement el)
I18nKeyGenerator
keysFor
in interface I18nKeyGenerator
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.public String messageBundleNameFor(Object object)
I18nKeyGenerator
messageBundleNameFor
in interface I18nKeyGenerator
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.