com.cc.framework.message
Class MessageResources

java.lang.Object
  extended bycom.cc.framework.message.MessageResources

public class MessageResources
extends java.lang.Object

This class defines a message (message resource) in different languages.

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Harald Schulz

Field Summary
private  java.util.Hashtable map
          The buffer to store the messages
 
Constructor Summary
MessageResources()
          Constructor for MessageMap
 
Method Summary
 int getCount()
          Returns the number of Messages in list
 MessageResource getMessage(int code)
          Returns a message for the specified code.
 void load(MessageResourceLoader loader)
          Loads the messages into the internal list.
 java.util.Enumeration messages()
          Returns an enumeration of all messages in this list.
 java.lang.String toString()
          Returns a String representation for the size of the message dictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

private java.util.Hashtable map
The buffer to store the messages

Constructor Detail

MessageResources

public MessageResources()
Constructor for MessageMap

Method Detail

getCount

public int getCount()
Returns the number of Messages in list

Returns:
integer

getMessage

public MessageResource getMessage(int code)
Returns a message for the specified code.

Parameters:
code - the message code
Returns:
MessageResource

load

public void load(MessageResourceLoader loader)
Loads the messages into the internal list.

Parameters:
loader - the message loader

messages

public java.util.Enumeration messages()
Returns an enumeration of all messages in this list.

Returns:
an enumeration of the values in this list.
See Also:
Enumeration

toString

public java.lang.String toString()
Returns a String representation for the size of the message dictionary

Returns:
String


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.