info.magnolia.cms.i18n
Class MessagesChain

java.lang.Object
  extended by info.magnolia.cms.i18n.AbstractMessagesImpl
      extended by info.magnolia.cms.i18n.MessagesChain
All Implemented Interfaces:
Messages

public class MessagesChain
extends AbstractMessagesImpl

Chains messages.

Version:
$Revision$ ($Author$)
Author:
Philipp Bracher

Field Summary
 
Fields inherited from class info.magnolia.cms.i18n.AbstractMessagesImpl
basename, bundle, JS_OBJECTNAME, locale, log
 
Constructor Summary
MessagesChain(Messages head)
          Create a chain passing the wrapped head of the chain.
 
Method Summary
 MessagesChain chain(Messages messages)
          Append messages to the chain.
 String get(String key)
          Get the string searching in the chain.
 Iterator<String> keys()
          Return all keys contained in this chain.
 void reload()
          Reload the chain.
 
Methods inherited from class info.magnolia.cms.i18n.AbstractMessagesImpl
equals, get, getBasename, getLocale, getWithDefault, getWithDefault, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessagesChain

public MessagesChain(Messages head)
Create a chain passing the wrapped head of the chain.

Method Detail

chain

public MessagesChain chain(Messages messages)
Append messages to the chain.

Returns:
the chain itself

get

public String get(String key)
Get the string searching in the chain.

Parameters:
key - the key
Returns:
message

keys

public Iterator<String> keys()
Return all keys contained in this chain.

Returns:
iterator

reload

public void reload()
            throws Exception
Reload the chain.

Throws:
Exception


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.