|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.msgsimple.bundle.MessageBundleBuilder
public final class MessageBundleBuilder
Builder class for a message bundle
You cannot instantiate this class directly: use MessageBundle.newBuilder(), or thaw another
bundle.
This class is the Thawed counterpart of a MessageBundle.
MessageBundle| Method Summary | |
|---|---|
MessageBundleBuilder |
appendBundle(MessageBundle bundle)
Append all message source providers from another bundle |
MessageBundleBuilder |
appendProvider(MessageSourceProvider provider)
Append a message provider |
MessageBundleBuilder |
appendSource(Locale locale,
MessageSource source)
Convenience method to append a single-source provider for a given locale |
MessageBundleBuilder |
appendSource(MessageSource source)
Convenience method to append a single-source provider |
MessageBundle |
freeze()
|
MessageBundleBuilder |
prependBundle(MessageBundle bundle)
Prepend all message source providers from another bundle |
MessageBundleBuilder |
prependProvider(MessageSourceProvider provider)
Prepend a message provider |
MessageBundleBuilder |
prependSource(Locale locale,
MessageSource source)
Convenience method to prepend a single-source provider for a given locale |
MessageBundleBuilder |
prependSource(MessageSource source)
Convenience method to prepend a single-source provider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public MessageBundleBuilder appendProvider(MessageSourceProvider provider)
provider - the provider
NullPointerException - provider is nullpublic MessageBundleBuilder prependProvider(MessageSourceProvider provider)
provider - the provider
NullPointerException - provider is nullpublic MessageBundleBuilder appendSource(MessageSource source)
source - the message source
StaticMessageSourceProvider.withSingleSource(MessageSource)public MessageBundleBuilder prependSource(MessageSource source)
source - the message source
StaticMessageSourceProvider.withSingleSource(MessageSource)
public MessageBundleBuilder appendSource(Locale locale,
MessageSource source)
source - the message source
StaticMessageSourceProvider.withSingleSource(Locale, MessageSource)
public MessageBundleBuilder prependSource(Locale locale,
MessageSource source)
source - the message source
StaticMessageSourceProvider.withSingleSource(Locale, MessageSource)public MessageBundleBuilder appendBundle(MessageBundle bundle)
bundle - the bundle
NullPointerException - bundle is nullpublic MessageBundleBuilder prependBundle(MessageBundle bundle)
bundle - the bundle
NullPointerException - bundle is nullpublic MessageBundle freeze()
freeze in interface Thawed<MessageBundle>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||