|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.DelegatingMessagesImpl
public class DelegatingMessagesImpl
Implementation of Messages
that wraps two other Messages instances: a primary and a delegate.
The primary handles any keys it contains; method invocations that reference keys not contained by
the primary are passed on to the delegate.
Constructor Summary | |
---|---|
DelegatingMessagesImpl(Messages primary,
Messages delegate)
|
Method Summary | |
---|---|
boolean |
contains(String key)
Returns true if the bundle contains the named key. |
String |
format(String key,
Object... args)
Convienience for accessing a formatter and formatting a localized message with arguments. |
String |
get(String key)
Returns the localized message for the given key. |
MessageFormatter |
getFormatter(String key)
Returns a formatter for the message, which can be used to substitute arguments (as per Formatter ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingMessagesImpl(Messages primary, Messages delegate)
Method Detail |
---|
public boolean contains(String key)
Messages
contains
in interface Messages
public String format(String key, Object... args)
Messages
format
in interface Messages
public String get(String key)
Messages
get
in interface Messages
public MessageFormatter getFormatter(String key)
Messages
Formatter
).
getFormatter
in interface Messages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |