org.slim3.commons.message
Class MessageResourceBundle

java.lang.Object
  extended by org.slim3.commons.message.MessageResourceBundle

public class MessageResourceBundle
extends Object

This class represents the message bundle.

Since:
3.0
Author:
higa

Field Summary
protected  MessageResourceBundle parent
          The parent.
protected  Properties properties
          The properties.
 
Constructor Summary
MessageResourceBundle(Properties properties)
          Constructor.
MessageResourceBundle(Properties properties, MessageResourceBundle parent)
          Constructor.
 
Method Summary
 String get(String key)
          Returns the message.
 MessageResourceBundle getParent()
          Returns the parent.
 void setParent(MessageResourceBundle parent)
          Sets the parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Properties properties
The properties.


parent

protected MessageResourceBundle parent
The parent.

Constructor Detail

MessageResourceBundle

public MessageResourceBundle(Properties properties)
Constructor.

Parameters:
properties - the properties

MessageResourceBundle

public MessageResourceBundle(Properties properties,
                             MessageResourceBundle parent)
Constructor.

Parameters:
properties - the properties
parent - the parent
Method Detail

get

public String get(String key)
Returns the message. If this object and parent have same key, this object is prior. If the key does not exist in this object and parent, returns null.

Parameters:
key - the key
Returns:
the message

getParent

public MessageResourceBundle getParent()
Returns the parent.

Returns:
the parent

setParent

public void setParent(MessageResourceBundle parent)
Sets the parent.

Parameters:
parent - the parent


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.