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: 41137 $ ($Author: gjoseph $)
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.
 java.lang.String get(java.lang.String key)
          Get the string searching in the chain.
 java.util.Iterator 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 java.lang.String get(java.lang.String key)
Get the string searching in the chain.

Parameters:
key - the key
Returns:
message

keys

public java.util.Iterator keys()
Return all keys contained in this chain.

Returns:
iterator

reload

public void reload()
            throws java.lang.Exception
Reload the chain.

Throws:
java.lang.Exception


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